unable using C++23 with CMake+clangd+MSVC+VSCode
I'm using CMake generator and MSVC compiler with VSCode editor while programming C++, but something troubled me when I try to switch language support extension to clangd. It works correctly set CXX_STANDARD to C++20, but when I tried upgrading to C++23, CMake generates "-std:c++latest" instead of "-std:c++23" to compile_commands.json. In my source files, both macro __cplusplus and _MSVC_LANG equals to 201402L, not 2023xxL. (But I can normally compile C++23 features) Do CMake and clangd support c++23? I found that there was -std:c++23 support for Clang in its official documentation, But it eith
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.