22 Apr
2011
22 Apr
'11
1:06 p.m.
Try:
fusion::result_of::transform< vector_type const, operation >::type tv2 = fusion::transform( v , operation() );
Notice the const. As of now, Fusion many algos accept only const sequences. There's a rationale why: Fusion algos are basically non-mutating and returns views. Anyway, I intend to relax this restriction and accept non-const sequences soon.
Regards,
Thank you, it works. Is there a simple way to do a non-lazy transform?