$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.