Opened 6 years ago

Closed 4 years ago

#12977 closed Bugs (invalid)

BOOST_NO_CXX11_HDR_MUTEX always defined when Clang is used

Reported by: anonymous Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:

Description

Boost 1.63 boost/config/stdlib/libcpp.hpp has code

#if __cplusplus < 201103
...
#  define BOOST_NO_CXX11_HDR_MUTEX
...

So the macro is always defined despite of libc++ has std::mutex! Boost.Context - C++11 library never uses std::mutex as a consequence.

Change History (2)

comment:1 by anonymous, 6 years ago

$ clang --version

FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: x86_64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin

comment:2 by John Maddock, 4 years ago

Resolution: invalid
Status: newclosed

You need to compile in C++11 mode.

Note: See TracTickets for help on using tickets.