]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* include/std/functional (__is_location_invariant): Use __or_ helper.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 16 Apr 2014 17:46:13 +0000 (18:46 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 16 Apr 2014 17:46:13 +0000 (18:46 +0100)
From-SVN: r209445

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional

index 09dd0f7e0437eb6ffa0f4a17c7ddbd1443e7a14d..4d0e3901a45548ea9fd26a6da63120c054934fa2 100644 (file)
@@ -1,3 +1,7 @@
+2014-04-16  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/std/functional (__is_location_invariant): Use __or_ helper.
+
 2014-04-15  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/60734
index 0e80fa37cf4c8bea20d9ece70f3c5e58009dccd0..295022de8ee3f4f58c2d7486e99b10b15ca6deb7 100644 (file)
@@ -1747,8 +1747,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type)
    */
   template<typename _Tp>
     struct __is_location_invariant
-    : integral_constant<bool, (is_pointer<_Tp>::value
-                              || is_member_pointer<_Tp>::value)>
+    : __or_<is_pointer<_Tp>, is_member_pointer<_Tp>>::type
     { };
 
   class _Undefined_class;