General Category > General Discussion about just::thread
#define _AMD64_
(1/1)
Rich Hornay:
I am getting the following (VS2010, v90 toolset):
1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): error C2220: warning treated as error - no 'object' file generated
1>F:\ThirdParty\just_thread\1.7\include\jss/atomic_impl.hpp(16): warning C4005: '_AMD64_' : macro redefinition
1> command-line arguments : see previous definition of '_AMD64_'
I get around it via #undef _AMD64_ before including <atomic>, but I would prefer not to do that. Maybe you should consider #ifndef _AMD64_ before defining it? The value is somewhat erratic. I have found it defined empty and 1.
Anthony Williams:
Thanks for the report; this fix will be in the next release.
Navigation
[0] Message Index
Go to full version