16 Aug
2010
16 Aug
'10
4:16 p.m.
On 8/16/2010 10:43 AM, joel falcou wrote:
Sounds like a job for Boost.Fusion ;)
A-hem, it sounds more like a job for Boost.Proto, which is specifically designed for transforming C++ expressions both at compile time and runtime. The op said:
foo(f,other(g,bar)) --> other(g,foo(f,bar))
If foo and other are proto expressions (which be easy to engineer), this expression will generate a proto expression tree that you can pass to a proto transform to do anything you want. -- Eric Niebler BoostPro Computing http://www.boostpro.com