|
Boost : |
Subject: Re: [boost] [variant] Warning: variadic templates in boost::variant
From: Peter Dimov (lists_at_[hidden])
Date: 2013-12-10 16:13:32
> > template< typename T0 = blank, typename... TN >
> > class variant;
Mapping variant<> to variant<blank> is not a good idea in principle. This
has the potential of creating endless loops in generic code that takes
variant<T, U...> and recursively calls itself with variant<U...>.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk