boost_no_cxx14_hdr_shared_mutex.ipp 816 B

123456789101112131415161718192021222324252627
  1. // (C) Copyright Edward Diener 2015
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX14_HDR_SHARED_MUTEX
  7. // TITLE: C++0y header <shared_mutex> unavailable
  8. // DESCRIPTION: The standard library does not supply C++0y header <shared_mutex>
  9. #include <shared_mutex>
  10. namespace boost_no_cxx14_hdr_shared_mutex {
  11. int test()
  12. {
  13. //
  14. // We should probably test __cpp_lib_shared_timed_mutex here, but since neither
  15. // MSVC/Dinkumware, nor clang/libc++ bother to set it (as of July 2015), there's
  16. // not much point....
  17. using std::shared_timed_mutex;
  18. return 0;
  19. }
  20. }