Boost logo

Boost :

Subject: Re: [boost] [variant] Warning: variadic templates in boost::variant
From: Peter Dimov (lists_at_[hidden])
Date: 2013-12-09 07:02:12


Antony Polukhin вроте:
> However this:
> * breaks ABI (now variant is declared as `template <typename T0,
> typename... TN> class variant`)

Why not just template<class... TN> class variant? It's true that the
degenerate case of variant<> isn't particularly useful, but then again,
neither is the singular case of variant<X>. Is there a good reason to
prohibit variant<>?


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