libstdc++: Add feature test macro for <experimental/scope>

libstdc++-v3/ChangeLog:

	* include/experimental/scope (__cpp_lib_experimental_scope):
	Define.
	* testsuite/experimental/scopeguard/uniqueres.cc: Check macro.
This commit is contained in:
Jonathan Wakely
2022-08-05 15:17:20 +01:00
parent 29fc5075d7
commit 58a644cfde
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -43,6 +43,8 @@ namespace std _GLIBCXX_VISIBILITY(default)
_GLIBCXX_BEGIN_NAMESPACE_VERSION
namespace experimental::inline fundamentals_v3
{
#define __cpp_lib_experimental_scope 201902
template<typename _Tp, typename _Up>
concept __not_same_as = !same_as<_Tp, _Up>;
@@ -4,6 +4,12 @@
#include <experimental/scope>
#include <testsuite_hooks.h>
#ifndef __cpp_lib_experimental_scope
# error Feature-test macro is not defined.
#elif __cpp_lib_experimental_scope < 201902
# error Feature-test macro has bad value.
#endif
using std::experimental::unique_resource;
void