
23 Jan
2009
23 Jan
'09
2:52 a.m.
AMDG Max wrote:
I don't know why this version works
std::vector<Real> vec(2); vec[0] = 1; vec[1] = 2; boost::function
vec_f = _1[0]; //Returns the 0'th element. boost::function vec_f1 = _1[0] * _1[1]; but this one doesn't.
std::vector<Real> vec(2); vec[0] = 1; vec[1] = 2; boost::function
vec_f = _1[0]; //Returns the 0'th element. boost::function vec_f1 = _1[0] * _1[1];
The handling of const is wrong in boost/lambda/detail/operator_return_type_traits.hpp The containers start on line 894. In Christ, Steven Watanabe