From dfef18919767f7ccc438d3133e7503751aa71018 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 25 Jul 2015 13:23:04 +0100 Subject: [PATCH] Fix test case for . Both clang/libc++ and MSVC-14 support , 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. --- test/boost_no_cxx14_hdr_shared_mutex.ipp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/boost_no_cxx14_hdr_shared_mutex.ipp b/test/boost_no_cxx14_hdr_shared_mutex.ipp index cb0ee206..ceae5659 100644 --- a/test/boost_no_cxx14_hdr_shared_mutex.ipp +++ b/test/boost_no_cxx14_hdr_shared_mutex.ipp @@ -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; }