Boost logo

Boost :

Subject: Re: [boost] [variant2] Andrzej's review -- documentation
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2019-04-08 13:29:00


niedz., 7 kwi 2019 o 14:10 Peter Dimov via Boost <boost_at_[hidden]>
napisał(a):

> Andrzej Krzemienski wrote:
>
>
> > According to the specs, the following should work:
> >
> > ```
> > void f() {}
> > variant2::visit(f);
> > ```
> > which is not incorrect, but strange.
>
> This is also the case with std::variant if I'm not mistaken? The purpose
> is
> probably to support variant<> parameter packs in a consistent way, even
> when
> the pack is empty.
>

Yes, this is also the case with std::variant.

Regards,
&rzej;


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