
14 Nov
2008
14 Nov
'08
7:21 p.m.
Eric Niebler a écrit :
Why don't you want to use make_expr? That's what it's for. You build the return type with proto::result_of::make_expr, and call proto::make_expr() from with f().
I have nothing against make_expr for building a single node of the expression. I have tons of such function combining long chains of call and i don't thin chaing large amount o f make_expr is good. Is there a way to use BOOST_TYPEOF with proto ? So maybe i can write : BOOST_TYPEOF( (vec_expr<A>()+vec_expr<B>())/(vec_expr<A>()-vec_expr<B>()) f( ... ) {} -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35