Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-03-31 23:29:21


AMDG

Eric Niebler wrote:
> It's as_expr(), not make_expr(). The former will be a no-op if the
> argument is already an expression in the current domain, the latter will
> always make a new expression.
>
> And as_expr() doesn't lose the domain information of its argument -- it
> just adds an additional domain wrapper, so you might get
> stevens_wrapper<lambda_wrapper<expr<...> > >.
I see. Excellent.

> But I haven't yet figured
> a good way to expose the nested domain information. A use case would help.
>

How about Boost.Parameter?

arg_pack[parameter || f]

In this expression, f should be a nullary function object.
There is no reason that Boost.Lambda shouldn't be able
to generate such a function object.

In Christ,
Steven Watanabe


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