Skip to content

Commit

Permalink
Make sure base class members are visible
Browse files Browse the repository at this point in the history
Co-Authored-By: S. B. Tam <[email protected]>
  • Loading branch information
MichaelRizkalla and cpplearner committed Feb 12, 2021
1 parent 769d62f commit 2d4c87b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stl/inc/variant
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,9 @@ struct _Variant_init_overload_set_;

template <size_t... _Indices, class... _Types>
struct _Variant_init_overload_set_<index_sequence<_Indices...>, _Types...>
: _Variant_init_single_overload<_Indices, _Types>... {};
: _Variant_init_single_overload<_Indices, _Types>... {
using _Variant_init_single_overload<_Indices, _Types>::operator()...;
};

template <class... _Types>
using _Variant_init_overload_set = _Variant_init_overload_set_<index_sequence_for<_Types...>, _Types...>;
Expand Down

0 comments on commit 2d4c87b

Please sign in to comment.