X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FParsedCommand.mpp;h=df42e0ae6a4f039ba763044e14d9c49c6cb26add;hb=ef4c5558d6a52367bd7040530d40c7616f6f5b71;hp=b2830eae6e1af04bd025907eebfd763265a26457;hpb=869df8df564cd4f4934d4cd1c1b290c2aeabbd92;p=senf.git diff --git a/Console/ParsedCommand.mpp b/Console/ParsedCommand.mpp index b2830ea..df42e0a 100644 --- a/Console/ParsedCommand.mpp +++ b/Console/ParsedCommand.mpp @@ -29,6 +29,8 @@ // Custom includes #include #include +#include +#include #include #include #include @@ -167,6 +169,19 @@ struct CreateParsedCommandOverload }; // //////////////////////////////////////////////////////////////////////// +#elif BOOST_PP_ITERATION_FLAGS()==5 // //////////////////////////////////// +// //////////////////////////////////////////////////////////////////////// + +// Create keyword arg forwarding functions + +template +next_type arg ( BOOST_PP_ENUM_BINARY_PARAMS( BOOST_PP_ITERATION(), A, const & a ), + typename arg_params::match< BOOST_PP_ENUM_PARAMS( BOOST_PP_ITERATION(), A ) >::type + kw = arg_params()) const { + return argInfo( kw(BOOST_PP_ENUM_PARAMS( BOOST_PP_ITERATION(), a )) ); +} + +// //////////////////////////////////////////////////////////////////////// #endif // ///////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////// // Undefine local Macros