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:
jzmaddock
2015-07-25 13:23:04 +01:00
parent dd26419a25
commit dfef189197

View File

@ -16,11 +16,11 @@ namespace boost_no_cxx14_hdr_shared_mutex {
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;
#else
using std::shared_mutex;
#endif
return 0;
}