
21 Jun
2012
21 Jun
'12
7:19 p.m.
AMDG On 06/21/2012 05:42 AM, niXman wrote:
Hello!
I need to get the types list for operator() for result type of boost::bind()
You can't. Boost.Bind creates polymorphic function objects.
Example:
void func(int, long) {} auto o = boost::bind(&func, _1, _2); o( ??? ); // what types of arguments?
// this is legal void f(); auto o = boost::bind(&f, _1, _2, _3); // what are the argument types of o? // this is also legal: void g(int, long); auto o = boost::bind(&g, _1, _1); // Is the argument type int or long? In Christ, Steven Watanabe