Avoid gcc warning 'base class should be explicitly initialized in copy constructor'

This commit is contained in:
Peter Dimov
2020-02-01 01:18:40 +02:00
parent 76c67c9b21
commit 4b60dee4b6

View File

@ -1115,6 +1115,7 @@ public:
variant_cc_base_impl( variant_cc_base_impl const& r )
noexcept( mp11::mp_all<std::is_nothrow_copy_constructible<T>...>::value )
: variant_base()
{
mp11::mp_with_index<sizeof...(T)>( r.index(), L1{ this, r } );
}