]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Move __success_type and __failure_type later in file
authorJonathan Wakely <jwakely@redhat.com>
Mon, 5 Sep 2022 14:52:34 +0000 (15:52 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 5 Sep 2022 16:44:33 +0000 (17:44 +0100)
libstdc++-v3/ChangeLog:

* include/std/type_traits (__success_type, __failure_type): Move
definitions later in the file.

libstdc++-v3/include/std/type_traits

index e19d964fa9c125753564af2a0ae211a4942aef28..e4d167939d93995d9318090e98733e129e1a41ca 100644 (file)
@@ -286,18 +286,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     >::type __is_complete_or_unbounded(_TypeIdentity)
     { return {}; }
 
-  // For several sfinae-friendly trait implementations we transport both the
-  // result information (as the member type) and the failure information (no
-  // member type). This is very similar to std::enable_if, but we cannot use
-  // them, because we need to derive from them as an implementation detail.
-
-  template<typename _Tp>
-    struct __success_type
-    { typedef _Tp type; };
-
-  struct __failure_type
-  { };
-
   // __remove_cv_t (std::remove_cv_t for C++11).
   template<typename _Tp>
     using __remove_cv_t = typename remove_cv<_Tp>::type;
@@ -2162,6 +2150,19 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   // Sfinae-friendly common_type implementation:
 
   /// @cond undocumented
+
+  // For several sfinae-friendly trait implementations we transport both the
+  // result information (as the member type) and the failure information (no
+  // member type). This is very similar to std::enable_if, but we cannot use
+  // that, because we need to derive from them as an implementation detail.
+
+  template<typename _Tp>
+    struct __success_type
+    { typedef _Tp type; };
+
+  struct __failure_type
+  { };
+
   struct __do_common_type_impl
   {
     template<typename _Tp, typename _Up>
This page took 0.080708 seconds and 5 git commands to generate.