|
Boost Users : |
Subject: Re: [Boost-users] [Boost::mpl] transforming expression both at compile time and runtime
From: Eric Niebler (eric_at_[hidden])
Date: 2010-08-16 12:16:00
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
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