Closed Zhaojun-Liu closed 7 months ago
This is not a bug.
C++23 isn't even fully supported by even a single compiler yet!
The latest flag would be using for the next draft (C++26) as you can see in the uploaded screenshot from this link : https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170
This error is due to enabling an unsupported target language, it is therefore not a bug in this software. We can close.
@Zhaojun-Liu I recommend just using the c++20 that is now the standard for most c++ projects.
This is not a bug.
C++23 isn't even fully supported by even a single compiler yet!
The latest flag would be using for the next draft (C++26) as you can see in the uploaded screenshot from this link : https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170
This error is due to enabling an unsupported target language, it is therefore not a bug in this software. We can close.
@Zhaojun-Liu I recommend just using the c++20 that is now the standard for most c++ projects.
Ok, got it. Thank you~
Before creating an issue, please ensure:
Hi, recently, the MSVC team updated the commit of Forgottenserver and vcpkg for RWC testing, and it build failed due to the
F:\gitP\otland\forgottenserver\src\tools.h(77,25): error C2278: 'constant': unexpected token. Format is '__has_cpp_attribute( identifier )'
. Could you please look this issue? Thanks.Steps to reproduce (include any configuration/script required to reproduce)
Expected behaviour
Build sucessfully.
Actual behaviour
F:\gitP\otland\forgottenserver\src\tools.h(77,25): error C2278: 'constant': unexpected token. Format is '__has_cpp_attribute( identifier )' [F:\gitP\otland\forgottenserver\build_amd64\src\tfslib.vcxproj]
Environment
Windows Server 2022
Reproduction environment
VS2022
build log: build.log