Boost logo

Boost Users :

Subject: [Boost-users] [lambda] Boost.Bind works, labmda bind fails to compile
From: Igor R (boost.lists_at_[hidden])
Date: 2009-12-30 09:14:27


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!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net