|
Boost Users : |
From: Damien Hocking (damien_at_[hidden])
Date: 2007-10-24 22:50:22
Ganesh,
it's not 100% clear (at least to me) what you want to do. The main
question is, do you know the expression you want to evaluate at
compile-time, or run-time? If it's compile-time, you can use
compile-time expression templates, like this:
http://www.ddj.com/cpp/184401627
If you're expression is constructed at run-time, it's more difficult and
you get into things like expression tree traversal and bytecode
generation. Some of the serious C++ template experts might be able to
offer some further advice.
Damien
Borse, Ganesh wrote:
> Hi,
> You recommended checking the "expression templates".
> However, expression templates (xpressive) provides the means of parsing
> the input expressions in to tokens.
> It does not have the support for evaluating these expressions. ---
> please correct me if I'm wrong.
> Thanks,
> Ganesh
> __________
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net