#how to write c++20 in macos ? I have installed latest llvm toolchains
32 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
How do you compile
And did you set the -std=c++20
Use -fmodules-ts
Ah clang
Holup
no such argument
Standard C++ modules are enabled automatically when the language standard mode is -std=c++20 or newer
Which clang version
And i believe you need to name file .cppm
Instead of .cc
I believe you need clang20
may I ask how to install it with brew ?
ok, I got it.
I think I need to compile the module first, and then use the module with main.cc
what the hell ?
c_cpp_properties.json
You put args different std than in the cppStandard
sorry, I don't know what do you mean 😂
change this to "c++20"