
21 Jun
2012
21 Jun
'12
7:23 p.m.
2012/6/21 Steven Watanabe:
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?
I understand. Thank you! -- Regards, niXman ___________________________________________________ Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows: http://sourceforge.net/projects/mingwbuilds/