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


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


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at