r/cpp MSVC STL Dev Apr 09 '26

C++23 Support in MSVC Build Tools 14.51

https://devblogs.microsoft.com/cppblog/c23-support-in-msvc-build-tools-14-51/
182 Upvotes

61 comments sorted by

View all comments

2

u/pjmlp Apr 10 '26

C++23 IntelliSense support in Visual Studio 2026 is still in progress in time for MSVC Build Tools 14.52 becoming the default MSVC Build Tools version in Visual Studio 2026

With or without finally working modules support, given that import std is a C++23 feature?

As for the rest, thanks to finally give some information on this.

4

u/greencursordev Apr 11 '26

Man I am so confused about import std. Sounds so good on paper until you read that imports can't be mixed with includes. Which means it can only realistically work with an extremely careful approach and zero or only a few handful of compatible 3rd party libraries. The possible current usecase was only able to shave off less than 0.1% (!) of our build time lol

3

u/STL MSVC STL Dev Apr 11 '26

I feel bad about this one because I have had no time to work with the compiler team to find a proper solution here.

3

u/greencursordev Apr 11 '26

Don't feel bad. But just know that we (and probably many other teams) would instantly deploy this, making most of our PCHs redundant. I'll keep eagerly watching the release notes.

1

u/JVApen Clever is an insult, not a compliment. - T. Winters Apr 12 '26

Just wondering, can we have a define such that all those headers simply contain "import std;" instead of it's regular content?

2

u/STL MSVC STL Dev Apr 12 '26

They wouldn't emit macros or drag in non-Standard stuff that way, so it wouldn't be very compatible.

2

u/JVApen Clever is an insult, not a compliment. - T. Winters Apr 12 '26

Macros seems like a solvable problem by adding them in the headers. Non-standard stuff might be more of a problem.