[config] Macro for detecting thread_local storage support
I have looked but been unable to find any macro in Boost.Config for detecting compiler support for the C++11 thread_local storage specifier. Does such functionality exist? I would like to use something like this to automatically detect compiler support for thread_local for use by the proposed Boost.Compute library. Currently I rely on the users defining BOOST_COMPUTE_HAVE_THREAD_LOCAL in order to enable support. Hopefully there is a better way? -kyle
I have looked but been unable to find any macro in Boost.Config for detecting compiler support for the C++11 thread_local storage specifier. Does such functionality exist?
No, and I can see that it would be useful, but how to detect/test for this feature? Perhaps you'd like to submit a patch? See: http://www.boost.org/doc/libs/1_55_0/libs/config/doc/html/boost_config/guide... Regards, John.
participants (2)
-
John Maddock
-
Kyle Lutz