but there's no "Latest" option |
Look at the option below C++20, the one that is marked "Preview".
Far right shows "std:c++latest".
so, you're saying that i just have to set both of those to "No"? |
You don't have to do anything, the defaults are already set so you don't use the experimental C++20 standard library modules, the option is blank, and the C++23 standard library modules option is set to No.
If you choose to use C++23 import modules,
import std;
for example, then you have to set the C++ language standard to Preview/std:c++latest.
Personally I prefer to specify what modules my code consumes by providing the module name.
import <iostream>;
for example.
Doing that makes modularizing old pre-C++20 code easier since the change is changing
#include
to
import
and add the semicolon at the end.
Since VS is not 100% C++23 compliant yet at this time I stay with the C++20 language standard. I'm still getting to know what C++20 added to the language toolbox, learning what C++23 offers is "in the future."
Intellisense in the VS IDE even with C++20 goes kinda loopy. With C++23 it goes really bonkers, flagging code as errors that aren't. Code that compiles without any issues.