30 Dec
2009
30 Dec
'09
4:58 p.m.
Igor R wrote:
Hello,
Could someone please explain the following behavior:
#include
#include 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 }
Sounds like a bug in MSVC.
struct Functor
{
template<class T> void func(T t)
{}
};
template