mirror of
https://github.com/boostorg/config.git
synced 2025-07-31 21:04:28 +02:00
Fix test case for <shared_mutex>.
Both clang/libc++ and MSVC-14 support <shared_mutex>, but neither set the SD6 macros so, don't bother testing them. Definitely don't test for the presence of std::shared_mutex as that's a C++17 feature.
This commit is contained in:
@@ -16,11 +16,11 @@ namespace boost_no_cxx14_hdr_shared_mutex {
|
|||||||
|
|
||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
#if defined(__cpp_lib_shared_timed_mutex) && __cpp_lib_shared_timed_mutex == 201402
|
//
|
||||||
|
// We should probably test __cpp_lib_shared_timed_mutex here, but since neither
|
||||||
|
// MSVC/Dinkumware, nor clang/libc++ bother to set it (as of July 2015), there's
|
||||||
|
// not much point....
|
||||||
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