Replace C++14 feature used in C++11 test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Oct 2019 16:14:54 +0000 (17:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 23 Oct 2019 16:14:54 +0000 (17:14 +0100)
* testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.

From-SVN: r277339

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/bind/91371.cc

index 277fd01eccfdba0465a3eb5546d9c7891432f0ff..d5df88b8e431e07b7c2cc8b36a33b50b1fcba7a3 100644 (file)
@@ -1,5 +1,7 @@
 2019-10-23  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.
+
        * include/debug/helper_functions.h (__valid_range): Change
        _GLIBCXX_CONSTEXPR to _GLIBCXX14_CONSTEXPR.
 
index 1c6f55e9eceb690b61b1de0a2fe3abd4ee763478..ad032ce1663274330d134d90086bfe4d77db9570 100644 (file)
@@ -32,6 +32,6 @@ test01()
 
   static_assert(std::is_function<decltype(bar)>::value, "");
   static_assert(std::is_function<decltype(baz)>::value, "");
-  static_assert(std::is_pointer<std::decay_t<decltype(bar)>>::value, "");
-  static_assert(std::is_pointer<std::decay_t<decltype(baz)>>::value, "");
+  static_assert(std::is_pointer<std::decay<decltype(bar)>::type>::value, "");
+  static_assert(std::is_pointer<std::decay<decltype(baz)>::type>::value, "");
 }