Closed vlj closed 4 years ago
What is your compiler and command line options?
The macro expands to int
only when __LP64__
is defined, which is an indicator of an LP64 platform, which is not Windows. Otherwise it is long
and there is an overload that matches it in your error message.
hmmm actually there is a define LP64 in our codebase which mess up compiler selection, so it's on our end. Sorry for the inconvenience.
Hi,
when I try to include boost\thread\win32\thread_data.hpp in a x64 project, I get compilation error:
I think the issue is that the BOOST_INTERLOCKED_LONG32 in interlocked.hpp introduced in commit https://github.com/boostorg/winapi/commit/65b9c99a6772add56a24272d0b76b611fd92caf4 is not (always) correct. There is no "_InterlockedIncrement(int)" in any of the header, the closest I found is "_InterlockedIncrement(unsigned int)" so maybe BOOST_INTERLOCKED_LONG32 can be defined as unsigned int instead of int ?