Boost logo

Boost :

Subject: Re: [boost] [variant] Warning: variadic templates in boost::variant
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-12-09 15:17:22


AMDG

On 12/09/2013 09:31 AM, Larry Evans wrote:
> On 12/09/13 08:52, Steven Watanabe wrote:
> [snip]> variant<> doesn't
>> really make sense, because it's impossible to satisfy
>> this invariant.
>
> I'm not as sure variant<> doesn't make some sense.
> tuple<> makes sense, at least according to:
>
> http://en.wikipedia.org/wiki/Tuple
>

The difference between tuple<> and variant<>,
is that tuple<> has exactly one possible value,
but variant<> has no possible values.

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