Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-02 19:26:38


"David Abrahams" <dave_at_[hidden]> wrote in message
news:uacw8xwl7.fsf_at_boost-consulting.com...
> "Jonathan Turkanis" <technews_at_[hidden]> writes:
>
> > "Eric Niebler" <eric_at_[hidden]> wrote in message
> > news:41374F88.9010100_at_boost-consulting.com...
> >>

> >> Yikes! Where did apply_if go? The docs still talk about apply_if. Is its
> >> absence an oversight or by-design?
> >
> > Can I assume it's now 'eval_if'?
> >
> > If so, I like it better, since there's no temptation to confuse apply_if and
> > apply.
>
> Yes. The problem was that "apply_if" had the wrong implications.
> mpl::apply applies lambda and then evaluates the resulting
> metafunction class. mpl::eval_if evaluates one of two nullary
> metafunctions, based on a condition.

Yeah, that's what I meant. Jusging just by the names, 'apply_if' sounds like a
conditional version of 'apply'.

Jonathan


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