///////////////////////////////ct.p////////////////////////////////////////
template <class Type>
-prefix_ void
+prefix_ bool
senf::console::senf_console_parse_argument(ParseCommandInfo::TokensRange const & tokens,
Type & out)
{
catch (std::bad_cast & ex) {
throw SyntaxErrorException("parameter syntax error");
}
+ return false;
}
///////////////////////////////////////////////////////////////////////////
{
unsigned n (0);
std::stringstream ss;
- for (unsigned bit (0); bit<sizeof(value.value)*CHAR_BIT; ++bit) {
- unsigned long flag (1<<bit);
+ unsigned long flag (1);
+ for (unsigned bit (0); bit<sizeof(value.value)*CHAR_BIT; ++bit, flag<<=1) {
if (value.value & flag) {
if (n++) ss << " ";
senf::console::format(static_cast<Enum>(flag), ss);