Replace C++14 feature used in C++11 test

* testsuite/20_util/bind/91371.cc: Fix test to compile as C++11.

From-SVN: r277339
This commit is contained in:
Jonathan Wakely 2019-10-23 17:14:54 +01:00 committed by Jonathan Wakely
parent 30a761c4b5
commit 161c3bf9ee
2 changed files with 4 additions and 2 deletions

View 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.

View 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, "");
}