[LLVMdev] C++14 support for shared_mutex
Tim Northover
t.p.northover at gmail.com
Mon Jun 8 19:10:00 PDT 2015
On 8 June 2015 at 17:53, Edward Diener <eldlistmailingz at tropicsoft.com> wrote:
> How can I tell at compile time through predefined macros whether libc++
> includes/supports the C++14 header file shared_mutex ?
I doubt it's even theoretically possible. Clang can be used with
multiple standard libraries, and there's no real way for it to know
just what you're compiling against (even if it knows in general terms
that it's libc++).
On a tightly controlled platform like OS X you might find a mostly
reliable proxy like the clang version (though people trying to use an
updated libc++ may curse you for it).
Cheers.
Tim.
More information about the llvm-dev
mailing list