
1 Apr
2008
1 Apr
'08
3:29 a.m.
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