|
Boost : |
Subject: Re: [boost] defect macro for thread_local?
From: Michel Morin (mimomorin_at_[hidden])
Date: 2016-06-22 21:11:14
Oliver Kowalke wrote:
> The macro would be helpful together with the feature-check to exclude
> compilers, that do not support the keyword thread_local (as gcc-4.7. and
> apple's compiler), from unit-tests.
FYI, the availability of TLS feature can be checked by
__has_feature(__cxx_thread_local__)
on Clang. This works properly on Apple Clang too (i.e. evaluates to 0).
Regards,
Michel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk