9 Dec
2013
9 Dec
'13
12:31 p.m.
2013/12/9 Peter Dimov
Andrey Semashev wrote:
On Monday 09 December 2013 14:02:12 Peter Dimov wrote:
Why not just template
class variant? What should be the storage for such a variant then? Also, most of the
interface of variant<> becomes invalid (e.g. type(), which(), assignment from elements, apply_visitor()). With such drastic interface differences, there should be a compelling reason to have such a specialization, and I don't see one.
I agree that which() is a problem.
I can easily add `template <> class variantboost::mpl::void_ {}; ` and `template <> class variant<> {};` class specializations that have no methods. Somebody needs them? -- Best regards, Antony Polukhin