[LLVMdev] C++14 support for shared_mutex
David Majnemer
david.majnemer at gmail.com
Mon Jun 8 19:07:30 PDT 2015
The most reliable way would be to get your build system to try to compile
source code which includes <shared_mutex> and then instantiates
shared_mutex<> with a plausible type. Anything else would be pretty
speculative as C++17 isn't even finished yet and it is possible, although
pretty unlikely IMO, for the feature to be removed.
On Mon, Jun 8, 2015 at 5:53 PM, 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 ?
>
> Given that I have identified that libc++ is being used, will this work ? :
>
> #if __cplusplus >= 201402
> // Header file shared_mutex supported
> #endif
>
> or do I need to check something else ?
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150608/c7869726/attachment.html>
More information about the llvm-dev
mailing list