23 Jan
2009
23 Jan
'09
2:42 a.m.
Considering also that neither
typedef boost::array
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]; B/Rgds Max