[libcxx-commits] [libcxx] r366026 - Cleanup whitespace in <variant>. NFC.
Eric Fiselier via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 14 11:31:55 PDT 2019
Author: ericwf
Date: Sun Jul 14 11:31:55 2019
New Revision: 366026
URL: http://llvm.org/viewvc/llvm-project?rev=366026&view=rev
Log:
Cleanup whitespace in <variant>. NFC.
Modified:
libcxx/trunk/include/variant
Modified: libcxx/trunk/include/variant
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/variant?rev=366026&r1=366025&r2=366026&view=diff
==============================================================================
--- libcxx/trunk/include/variant (original)
+++ libcxx/trunk/include/variant Sun Jul 14 11:31:55 2019
@@ -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 _
>::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>
More information about the libcxx-commits
mailing list