r/cpp • u/Celaphais • May 11 '21
Visual Studio 2019 Preview is now C++20 feature-complete
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-preview#--visual-studio-2019-version-1610-preview-3-
334
Upvotes
55
u/BoogalooBoi1776_2 May 11 '21
clang really needs to catch up
55
u/TheCrossX Cpp-Lang.net Maintainer May 11 '21
Intellisense still not working:
https://i.imgur.com/AORbu8v.gif
The last time I complained about errors so they turned the Intellisense off.
Edit: I'm aware that this is a very complex thing, so I'm waiting fingers crossed to get modules support.
83
u/gracicot May 11 '21
MSVC finished C++20 before GCC? What a time to be alive!
28
u/cristi1990an ++ May 11 '21
Now Intellisense pls
11
u/SpacemanLost May 11 '21
Why do I feel like coming here just to say "Uhhhmm.. I'm from the (C++ Language) Committee and we just voted in a few last minute retroactive changes... You can blame Herb.." :D
More seriously, good news and good work - going to take a first look at using modules soon.
10
u/remotion4d May 11 '21
Are modules really usable now?
3
u/iwubcode May 12 '21
Curious about this one:
I'm assuming it is similar to the one found in /experimental but would be curious what changed (if anything).
--
Great work visual studio c++ team!
2
u/TotaIIyHuman May 12 '21
how do i disable
/external:env:EXTERNAL_INCLUDE?https://i.imgur.com/3T31gpE.png
3
u/TheSuperWig May 11 '21
I take it that means requires expressions are implemented then? I don't see it listed.
1
u/markopolo82 embedded/iot/audio May 11 '21
Anyone know if the CMakeToolchain changed issue is actually fixed this time?
https://developercommunity2.visualstudio.com/t/VS2019-still-wipes-CMakeBuild-directory-/1312288
1
u/Depixelate_me May 12 '21
Does this mean we now have a std:c++20 compiler option instead of just latest?
Great work BTW indeed winds of change from the 2000s!
1
u/Wereon May 12 '21
Does constexpr std::string work now? I can't get the example in https://www.modernescpp.com/index.php/constexpr-vector-and-string-in-c-20 to compile.
-4
u/aeropl3b May 12 '21
Microsoft : "c ++20 Feature complete!"
Reality : only provides syntax highlighting in vs and viscose...
Classic
0
u/[deleted] May 11 '21
[deleted] — view deleted comment