Implements C++23 for Visual Studio non-makefile projects #2505
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds C++23 for non-makefile VS projects.
How does this PR change Premake's behavior?
For non-makefile projects, uses the
stdcpp23value in the vcxproj files. For makefile projects, this causes/std:c++latestto be used.Anything else we should know?
The value
/std:c++23previewdoes exist, but it is a temporary flag that will go away with the full release of/std:c++23. I have opted to use/std:c++latest, as that flag will be around for the foreseeable future. Once/std:c++23is in full release, another PR will be needed to use it inmsc.luaand in the makefile project configuration ofvs2010_vcxproj.lua.