ut
ut copied to clipboard
near and #include <Windows.h>
Expected Behavior
No erros during compilation
Actual Behavior
Errors while compiling ut\include\boost\ut.hpp(2212,35): error C2988: unrecognizable template declaration/definition ut\include\boost\ut.hpp(2212,35): error C2059: syntax error: 'const' ut\include\boost\ut.hpp(2213,60): error C2143: syntax error: missing ';' before '{' ut\include\boost\ut.hpp(2213,60): error C2447: '{': missing function header (old-style formal list?)
Steps to Reproduce the Problem
1.#include <Windows.h> 2.#include <ut.hpp> 3. compile
Specifications
- Version: MSVC - Version 17.2.0 Preview 3.0
- Platform: Windows
- Subsystem:
Reason for the errors
The header minwindef.h, included by windows.h defines near "#define near"
Thank you very much
Looks like I picked a bad name... Thanks for catching this!