Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Lambda, boost::lambda::detail::return_type_deduction_failure?
From: stefys (stefys_at_[hidden])
Date: 2008-12-29 19:09:31


I have managed to fix this by using ret<>() to specify the type that I
want my lambda function to return.
Now I have:
    for_each(vect.begin(), vect.end(), var(str) +=
ret<string>(_1+constant(", ")) );
And it compiles and works fine.


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