Boost logo

Boost :

Subject: Re: [boost] [mpl] and_<true_> returns false
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2013-09-18 23:46:41


On Wed, Sep 18, 2013 at 7:14 PM, Daryle Walker <darylew_at_[hidden]> wrote:

> I would go the other way and start support from zero arguments! The "and"
> operation would default to TRUE while "or" defaults to "FALSE." (Hint: the
> operations default to their "identity" operand value, and definitely not
> their "short-circuit" operand value.)
>

I agree. Use of that kind of stuff comes up all the time when dealing with
variadics. Having sensible 0 argument and 1 argument forms is important.

-- 
-Matt Calabrese

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