Opened 3 years ago

Closed 3 years ago

#13471 closed defect (fixed)

PORTS: Some C++11 features are disabled due to Visual Studio defining __cplusplus as the wrong value

Reported by: elasota Owned by: bluegr
Priority: normal Component: Port: Win64
Version: Keywords:
Cc: Game:

Description

Visual Studio defines __cplusplus as 199711L unless /Zc:__cplusplus is set in the compile command line:

https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-170

This is causing code paths checking for __cplusplus >= 201103L to not compile.

Change History (1)

comment:1 by bluegr, 3 years ago

Owner: set to bluegr
Resolution: fixed
Status: newclosed

Thanks for your work! The PR has been merged, so this can be closed now.

Note: See TracTickets for help on using tickets.