
24 Apr
2010
24 Apr
'10
5:28 p.m.
Olaf, I recommended writing the code above (see the operator() is *not* a template. Why do you still insist on writing it as a template? Here is your problem:
template <typename T> vector_type operator()( const vector_type& v, rlc ) const { return fusion::as_nview<0, 1, 2>( v ); }
template <typename T> vector_type operator()( const vector_type& v, lcr ) const { return fusion::as_nview<2, 0, 1>( v ); }
because you don't have any arguments with T.
Damn, you are in right. It was to late in the evening. Sorry for noise and thanks, Olaf