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;
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;
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?
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