![]() |
Proto : |
Subject: [proto] vector of proto expressions
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2011-03-18 10:06:52
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
classical container and boost::any or something similar is not sufficient,
because the type informations are lost, once the expression inside
boost::any.
In pseudo code it should look like this:
Expressions< N > expressions;
construct( expressions ); // or something similar
do_step( epxressions , x ); // my method
Do you have any ideas, how to solve this? Maybe fusion containers would work.
Thanks,
Karsten
Proto list run by eric at boostpro.com