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 277fd01..d5df88b 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 1c6f55e..ad032ce 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, "");
 }