-
-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation issue in MSVC when defining DOCTEST_THREAD_LOCAL to static #458
Comments
The reason that thread local there is static is that it's a class member and in all other cases the thread locals are globals and thus they don't need static. If you want to simply not have thread locals because you don't have access to a fully conformant C++11 compiler or you won't be doing anything from multiple threads you can simply define |
that works well for me |
there's another commit after the one you linked where I'm removing the |
thanks for the help! |
Description
define DOCTEST_THREAD_LOCAL to static:
Steps to reproduce
build
Extra information
The reason is this place
where static is, probably by accident, put after DOCTEST_THREAD_LOCAL
in other places it looks like this:
or
etc...
but this particular case is DOCTEST_PLATFORM_WINDOWS-only.
thanks!
The text was updated successfully, but these errors were encountered: