Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
MSVC + boost 1.70 compilation error when windows.h is already included (detail/thread_mutex.hpp) #116
There is an ADL problem with boost 1.70.0 that did not occur for us with 1.67.0.
When BOOST_USE_WINDOWS_H is not defined but windows.h has already been included, the calls to InitializeCriticalSection(Ex), EnterCriticalSection, LeaveCriticalSection and DeleteCriticalSection are ambiguous.
I have pasted the problematic part on godbold where you can see the bug: