Boost logo

Boost :

Subject: Re: [boost] boost::lambda and math functions
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-11-23 22:30:17


On Mon, Nov 23, 2009 at 6:40 PM, Peter Foelsche
<peter_foelsche_at_[hidden]> wrote:
>
> "Peter Foelsche" <peter_foelsche_at_[hidden]> wrote in message
> news:hef6ot$dnj$1_at_ger.gmane.org...
>
>
> see attached.
> Is there no simpler way?
> I especially dislike having to know the type of the argument.
> And I would need to write one class for every math function.

You might look at Boost.Phoenix2 (in the Boost.Spirit section), it can
do what you want (it can do everything Lambda can and more).


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk