X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FParsedCommand.hh;h=7571904e4f3b358e5982a147a3fac81939a5c483;hb=c92498e86ff9f107be25e9cf159c38f7122dbfc7;hp=ce9cad50f518e9c65f963256128cbb08afe4ff1a;hpb=f13780e9e4da7df981d6f6542fbdc714beb34765;p=senf.git diff --git a/senf/Utils/Console/ParsedCommand.hh b/senf/Utils/Console/ParsedCommand.hh index ce9cad5..7571904 100644 --- a/senf/Utils/Console/ParsedCommand.hh +++ b/senf/Utils/Console/ParsedCommand.hh @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include #include @@ -572,6 +572,28 @@ namespace console { namespace factory { + template + SimpleOverloadAttributor + Command(boost::function fn, + typename boost::enable_if_c::is_simple>::type * = 0); + + template + SimpleOverloadAttributor + Command(Function fn, + typename boost::enable_if_c::is_simple>::type * = 0); + + template + SimpleOverloadAttributor + Command(Member memfn, Owner * owner, + typename boost::enable_if >::type * = 0, + typename boost::enable_if_c::is_simple>::type * = 0); + + template + SimpleOverloadAttributor + Command(Member memfn, Owner const * owner, + typename boost::enable_if >::type * = 0, + typename boost::enable_if_c::is_simple>::type * = 0); + template typename senf::console::detail::ParsedCommandTraits::Attributor Command(boost::function fn); @@ -579,8 +601,9 @@ namespace factory { template typename senf::console::detail::ParsedCommandTraits::Attributor Command(Function fn, - typename boost::enable_if_c::is_callable>::type * = 0); - + typename boost::enable_if_c::is_callable>::type * = 0, + typename boost::disable_if >::type * = 0); + template typename senf::console::detail::ParsedCommandTraits::Attributor Command(boost::function fn); @@ -588,23 +611,28 @@ namespace factory { template typename senf::console::detail::ParsedCommandTraits::Attributor Command(Function fn, - typename boost::enable_if_c::is_callable>::type * = 0); + typename boost::enable_if_c::is_callable>::type * = 0, + typename boost::disable_if >::type * = 0); template typename senf::console::detail::ParsedCommandTraits::Attributor - BoundCommand(Owner * owner, Member memfn); + Command(Member memfn, Owner * owner, + typename boost::enable_if >::type * = 0); template typename senf::console::detail::ParsedCommandTraits::Attributor - BoundCommand(Owner const * owner, Member memfn); - + Command(Member memfn, Owner const * owner, + typename boost::enable_if >::type * = 0); + template typename senf::console::detail::ParsedCommandTraits::Attributor - BoundCommand(Owner * owner, Member memfn); + Command(Member memfn, Owner * owner, + typename boost::enable_if >::type * = 0); template typename senf::console::detail::ParsedCommandTraits::Attributor - BoundCommand(Owner const * owner, Member memfn); + Command(Member memfn, Owner const * owner, + typename boost::enable_if >::type * = 0); }}}