Hi,
I am developing a numerical method which strongly relies on expression
trees. The user of this method should supply N expression trees with which
some fancy operations are done. I think proto is great for that task, but
I do not know how to store the expression. I think a combination of a
clas
>
> 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
using namespace boost::proto;
template
void my_met
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 > expr
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 expr