Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda] Boost.Bind works, lambda bind fails to compile
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-30 11:18:57


AMDG

Igor R wrote:
> 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
> }
>

It ICEs in a bizarre way for me with the trunk and msvc 9.0.

In Christ,
Steven Watanabe


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