defect macro for thread_local?
Hi, does boost provide a defect macro for thread_local (like BOOST_NO_CXX11_THREAD_LOCAL)? I couldn't find something similar int the boost macro reference. 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. Oliver
On 21/06/2016 07:45, Oliver Kowalke wrote:
Hi,
does boost provide a defect macro for thread_local (like BOOST_NO_CXX11_THREAD_LOCAL)? I couldn't find something similar int the boost macro reference. 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.
No but there are some places I could use it as well.... care to submit a PR? John.
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
Are all 23 compilers listed in boost.config relevant (especially borland, edg, kai ...)? I could handle gcc and clang - but the others ...
On Thu, 23 Jun 2016, Oliver Kowalke wrote:
Are all 23 compilers listed in boost.config relevant (especially borland, edg, kai ...)? I could handle gcc and clang - but the others ...
We have to start somewhere. I think that, as long as the default is conservative, introducing the macro is the most important step. Interested people can then tune it for their favorite compiler. (I could really use this macro as well) -- Marc Glisse
does boost provide a defect macro for thread_local (like BOOST_NO_CXX11_THREAD_LOCAL)? I couldn't find something similar int the boost macro reference. 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.
I've just added this to Boost.Config in develop. Let me know if there are any SNAFU's. John.
2016-07-02 18:30 GMT+02:00 John Maddock
does boost provide a defect macro for thread_local (like
BOOST_NO_CXX11_THREAD_LOCAL)? I couldn't find something similar int the boost macro reference. 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.
I've just added this to Boost.Config in develop.
nice - untfortunately I was too slow
Let me know if there are any SNAFU's.
SNAFU ?
participants (4)
-
John Maddock
-
Marc Glisse
-
Michel Morin
-
Oliver Kowalke