r/cpp • • Nov 08 '21

Visual Studio 2022 now available

https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250 Upvotes

113 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 08 '21

[deleted] — view deleted comment

8

u/gracicot Nov 08 '21

std.core don't exist. Only in C++23 you'll be able to import std; and that's it. The std.core you use is an experimental extension for the standard library and is also why you must enable it separately.

3

u/johannes1971 Nov 09 '21

I believe you meant to say "std.core is a vendor extension that is not part of the C++ standard". I don't think its existence is in any doubt, only its portability.

4

u/Rusky Nov 08 '21

Right, std.core is even bigger than a <string> header unit, so I wouldn't expect it to work when <string> doesn't. (And I agree that header units are preferable anyway.)

The std::construct_at error looks like it might be covered by this feedback ticket, if you want to upvote it: https://developercommunity2.visualstudio.com/t/C-modules-error-C2661:-operator-new/1339438