forked from boostorg/config
Updated example checking SD-6 macro
This commit is contained in:
@ -16,8 +16,11 @@ namespace boost_no_cxx14_hdr_shared_mutex {
|
|||||||
|
|
||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
using std::shared_mutex;
|
#if defined(__cpp_lib_shared_timed_mutex) && __cpp_lib_shared_timed_mutex == 201402
|
||||||
using std::shared_timed_mutex;
|
using std::shared_timed_mutex;
|
||||||
|
#else
|
||||||
|
using std::shared_mutex;
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user