23 Jun
2016
23 Jun
'16
1:11 a.m.
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