X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FParsedCommand.ih;h=90231c20dfeb69d4673b84a90e6b12945bf2c6a2;hb=9cda1b12a3e68538ea8157ca96810f0423123a70;hp=d9c261016bad701b0c1408bc71d727d8f0701ea0;hpb=80c6cb7ba9ad7776824c84809f422209adf27331;p=senf.git diff --git a/Console/ParsedCommand.ih b/Console/ParsedCommand.ih index d9c2610..90231c2 100644 --- a/Console/ParsedCommand.ih +++ b/Console/ParsedCommand.ih @@ -109,14 +109,14 @@ namespace detail { typedef typename Traits::arg1_type type; }; - template ::value> - struct ParsedCommandTraits + template ::value> + struct ParsedCommandTraits_i {}; - template - struct ParsedCommandTraits + template + struct ParsedCommandTraits_i { - typedef Fn base_type; + typedef FunctionP base_type; typedef typename senf::remove_any_pointer::type function_type; typedef boost::function_traits base_traits; typedef typename FirstArgType::type first_arg_type; @@ -139,6 +139,17 @@ namespace detail { typedef ParsedArgumentAttributor Attributor; }; + // Disable auto-parsing for ParseCommandInfo arg -> register manually parsed command + template + struct ParsedCommandTraits_i + {}; + + template + struct ParsedCommandTraits + : public ParsedCommandTraits_i< FunctionP, + typename senf::remove_any_pointer::type > + {}; + struct ParsedCommandAddNodeAccess; #endif