diff options
-rw-r--r-- | libcxx/include/variant | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libcxx/include/variant b/libcxx/include/variant index 21871ae3c12..88a625df71e 100644 --- a/libcxx/include/variant +++ b/libcxx/include/variant @@ -1089,14 +1089,6 @@ private: } }; -template <class... _Types> -struct __overload; - -template <> -struct __overload<> { void operator()() const; }; - - - struct __no_narrowing_check { template <class _Dest, class _Source> using _Apply = __identity<_Dest>; @@ -1120,14 +1112,18 @@ using __check_for_narrowing = typename _If< >::template _Apply<_Dest, _Source>; +template <class... _Types> +struct __overload; + +template <> +struct __overload<> { void operator()() const; }; + template <class _Tp, class... _Types> struct __overload<_Tp, _Types...> : __overload<_Types...> { using __overload<_Types...>::operator(); template <class _Up> - auto operator()(_Tp, _Up&&) const -> - - __check_for_narrowing<_Tp, _Up>; + auto operator()(_Tp, _Up&&) const -> __check_for_narrowing<_Tp, _Up>; }; template <class _Base, class _Tp> |