
5 Oct
2006
5 Oct
'06
6:12 a.m.
Operator , (nullary composition) does not seem work between boost::function and boost::lambda. Is this a bug? Is there any way to work around this? void foo() { std::cout << "foo"; } boost::function<void()> f(boost::lambda::bind(&foo)); (f,f)(); // Outputs foo (boost::lambda::bind(&foo),f)(); // Outputs foo (f,boost::lambda::bind(&foo))(); // Outputs foo (boost::lambda::bind(&foo), boost::lambda::bind(&foo))(); // Outputs foofoo I am using boost 1.32 and gcc 3.4.4. Best Regards, Johan Torp -- System Developer TouchTable AB Tel: +46 (0)31 773 68 12 johan.torp@touchtable.se