Error C2467 when "Disable Language Extensions" is set to "Yes (/Za)" in MSVC 16.8
Open
- Dominant language
- C++
- Stars
- 73
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
Visual Studio 2019 v16.8 reports the following error on this line if you include in a Win32 project:
boost-1.74\boost\winapi\basic_types.hpp(255,6): error C2467: illegal declaration of anonymous 'struct'
https://github.com/boostorg/winapi/blob/37607cc3d3ea5145381f65b6fe51eac8bb8f361f/include/boost/winapi/basic_types.hpp#L255
For this .vcxproj, I do have "Disable Language Extensions" set to "Yes (/Za)", which seems to be triggering this issue.
Also: "C++ Language Standard" is set to "Default (ISO C++14 Standard)"
"C Language Standard" is set to "Default (Legacy MSVC)"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.