Commit 55b00d14 by Jonathan Wakely

libstdc++: Update __cpp_lib_erase_if macro (P1115R3)

Now that this feature has been approved for C++20 we can define the
macro to the official value.

	* include/bits/erase_if.h (__cpp_lib_erase_if): Define to 202002L.
	* include/std/deque: Likewise.
	* include/std/forward_list: Likewise.
	* include/std/list: Likewise.
	* include/std/string: Likewise.
	* include/std/vector: Likewise.
	* include/std/version: Likewise.
	* testsuite/23_containers/deque/erasure.cc: Test for new value.
	* testsuite/23_containers/forward_list/erasure.cc: Likewise.
	* testsuite/23_containers/list/erasure.cc: Likewise.
	* testsuite/23_containers/map/erasure.cc: Likewise.
	* testsuite/23_containers/set/erasure.cc: Likewise.
	* testsuite/23_containers/unordered_map/erasure.cc: Likewise.
	* testsuite/23_containers/unordered_set/erasure.cc: Likewise.
	* testsuite/23_containers/vector/erasure.cc: Likewise.
parent 5b1d5885
2020-02-15 Jonathan Wakely <jwakely@redhat.com> 2020-02-15 Jonathan Wakely <jwakely@redhat.com>
* include/bits/erase_if.h (__cpp_lib_erase_if): Define to 202002L.
* include/std/deque: Likewise.
* include/std/forward_list: Likewise.
* include/std/list: Likewise.
* include/std/string: Likewise.
* include/std/vector: Likewise.
* include/std/version: Likewise.
* testsuite/23_containers/deque/erasure.cc: Test for new value.
* testsuite/23_containers/forward_list/erasure.cc: Likewise.
* testsuite/23_containers/list/erasure.cc: Likewise.
* testsuite/23_containers/map/erasure.cc: Likewise.
* testsuite/23_containers/set/erasure.cc: Likewise.
* testsuite/23_containers/unordered_map/erasure.cc: Likewise.
* testsuite/23_containers/unordered_set/erasure.cc: Likewise.
* testsuite/23_containers/vector/erasure.cc: Likewise.
2020-02-15 Jonathan Wakely <jwakely@redhat.com>
* include/bits/random.h (uniform_random_bit_generator): Require min() * include/bits/random.h (uniform_random_bit_generator): Require min()
and max() to be constant expressions and min() to be less than max(). and max() to be constant expressions and min() to be less than max().
* testsuite/26_numerics/random/concept.cc: Check additional cases. * testsuite/26_numerics/random/concept.cc: Check additional cases.
......
...@@ -39,7 +39,7 @@ namespace std ...@@ -39,7 +39,7 @@ namespace std
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if __cplusplus > 201703L #if __cplusplus > 201703L
# define __cpp_lib_erase_if 201900L # define __cpp_lib_erase_if 202002L
#endif #endif
namespace __detail namespace __detail
......
...@@ -91,7 +91,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ...@@ -91,7 +91,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
template<typename _Tp, typename _Alloc, typename _Predicate> template<typename _Tp, typename _Alloc, typename _Predicate>
inline typename deque<_Tp, _Alloc>::size_type inline typename deque<_Tp, _Alloc>::size_type
......
...@@ -62,7 +62,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ...@@ -62,7 +62,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
template<typename _Tp, typename _Alloc, typename _Predicate> template<typename _Tp, typename _Alloc, typename _Predicate>
inline typename forward_list<_Tp, _Alloc>::size_type inline typename forward_list<_Tp, _Alloc>::size_type
......
...@@ -86,7 +86,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ...@@ -86,7 +86,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
template<typename _Tp, typename _Alloc, typename _Predicate> template<typename _Tp, typename _Alloc, typename _Predicate>
inline typename list<_Tp, _Alloc>::size_type inline typename list<_Tp, _Alloc>::size_type
......
...@@ -118,7 +118,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ...@@ -118,7 +118,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
template<typename _CharT, typename _Traits, typename _Alloc, template<typename _CharT, typename _Traits, typename _Alloc,
typename _Predicate> typename _Predicate>
......
...@@ -101,7 +101,7 @@ namespace std _GLIBCXX_VISIBILITY(default) ...@@ -101,7 +101,7 @@ namespace std _GLIBCXX_VISIBILITY(default)
{ {
_GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
template<typename _Tp, typename _Alloc, typename _Predicate> template<typename _Tp, typename _Alloc, typename _Predicate>
inline typename vector<_Tp, _Alloc>::size_type inline typename vector<_Tp, _Alloc>::size_type
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
#define __cpp_lib_constexpr_complex 201711L #define __cpp_lib_constexpr_complex 201711L
#define __cpp_lib_constexpr_dynamic_alloc 201907L #define __cpp_lib_constexpr_dynamic_alloc 201907L
#define __cpp_lib_constexpr_invoke 201907L #define __cpp_lib_constexpr_invoke 201907L
#define __cpp_lib_erase_if 201900L #define __cpp_lib_erase_if 202002L
#define __cpp_lib_interpolate 201902L #define __cpp_lib_interpolate 201902L
#ifdef _GLIBCXX_HAS_GTHREADS #ifdef _GLIBCXX_HAS_GTHREADS
# define __cpp_lib_jthread 201907L # define __cpp_lib_jthread 201907L
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __cpp_lib_erase_if #ifndef __cpp_lib_erase_if
# error "Feature-test macro for erase_if missing" # error "Feature-test macro for erase_if missing"
#elif __cpp_lib_erase_if < 201811 #elif __cpp_lib_erase_if < 202002
# error "Feature-test macro for erase_if has wrong value" # error "Feature-test macro for erase_if has wrong value"
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment