
30 Dec
2009
30 Dec
'09
7:14 a.m.
Hello, Could someone please explain the following behavior: #include <boost/lambda/bind.hpp> #include <boost/bind.hpp> struct Functor { void operator()() const {} template<class T> void func(T t) {} }; int main() { Functor f; boost::lambda::bind(&Functor::func<Functor>, &f, f); // doesn't compile boost::bind(&Functor::func<Functor>, &f, f); // compiles well } Thanks!