Re: [proto] vector of proto expressions

2011-03-18 Thread Nate Knight
In pseudo code it should look like this: Expressions N expressions; construct( expressions );// or something similar do_step( epxressions , x ); // my method How about something like? ~ #include boost/proto/proto.hpp using namespace boost::proto;

Re: [proto] vector of proto expressions

2011-03-18 Thread Karsten Ahnert
Hmm, this might work. It is similar to my_method( fusion::make_vector( i+i , i*i*i , i*i ) , x ); But the expression might become really large, say 100 elements. A separation between construction and usage would be nicer. In pseudo code it should look like this: Expressions N expressions;

Re: [proto] vector of proto expressions

2011-03-18 Thread Nate Knight
On Mar 18, 2011, at 9:17 AM, Karsten Ahnert wrote: Hmm, this might work. It is similar to my_method( fusion::make_vector( i+i , i*i*i , i*i ) , x ); But the expression might become really large, say 100 elements. A separation between construction and usage would be nicer. How about?

Re: [proto] vector of proto expressions

2011-03-18 Thread Karsten Ahnert
Ok, but auto is c++0x specific, right? Is there a possibility for c++03? On 03/18/2011 05:02 PM, Nate Knight wrote: On Mar 18, 2011, at 9:17 AM, Karsten Ahnert wrote: Hmm, this might work. It is similar to my_method( fusion::make_vector( i+i , i*i*i , i*i ) , x ); But the expression