Error C2467 when "Disable Language Extensions" is set to "Yes (/Za)" in MSVC 16.8
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- compilers, operating-systems
Research direction
Start with boost/winapi/basic_types.hpp at line 255 and reproduce the error by including <boost/chrono.hpp> in a Win32 project using Visual Studio 2019 v16.8 with Disable Language Extensions set to Yes (/Za). Verify the result against the reported C2467 error; done means the project no longer reports that error under the stated settings.
Written by the indexing model from the issue text.
Description
Visual Studio 2019 v16.8 reports the following error on this line if you include <boost/chrono.hpp> in a Win32 project:
boost-1.74\boost\winapi\basic_types.hpp(255,6): error C2467: illegal declaration of anonymous 'struct'
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)"
- Dominant language
- C++
- Stars
- 73
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/winapi
Similar issues
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
isl-org/Open3D#7585 · 1 comment ·
Maintainers usually reply within 2 days
-
Unconfirmed bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
luanti-org/luanti#17605 · 1 comment ·
Maintainers usually reply within 2 days
-
area: config area: firmware priority: P2 - medium size: S type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Mizithra/ActiveTerrain#16 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
grumpycoders/pcsx-redux#2171 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days