ut icon indicating copy to clipboard operation
ut copied to clipboard

near and #include <Windows.h>

Open NelsonEloi opened this issue 3 years ago • 1 comments

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

NelsonEloi avatar Apr 18 '22 15:04 NelsonEloi

Looks like I picked a bad name... Thanks for catching this!

80Ltrumpet avatar Apr 18 '22 16:04 80Ltrumpet