From b351a9a1ed681517aa8d96b6a25a889ca35ba9d1 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Mon, 15 Jun 2015 10:00:02 -0400 Subject: [PATCH] Updated example checking SD-6 macro --- test/boost_no_cxx14_hdr_shared_mutex.ipp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/boost_no_cxx14_hdr_shared_mutex.ipp b/test/boost_no_cxx14_hdr_shared_mutex.ipp index 7cac6fcc..cb0ee206 100644 --- a/test/boost_no_cxx14_hdr_shared_mutex.ipp +++ b/test/boost_no_cxx14_hdr_shared_mutex.ipp @@ -16,8 +16,11 @@ namespace boost_no_cxx14_hdr_shared_mutex { int test() { - using std::shared_mutex; +#if defined(__cpp_lib_shared_timed_mutex) && __cpp_lib_shared_timed_mutex == 201402 using std::shared_timed_mutex; +#else + using std::shared_mutex; +#endif return 0; }