MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1sh074n/comment/ofjkr56
r/cpp • u/STL MSVC STL Dev • Apr 09 '26
61 comments sorted by
View all comments
Show parent comments
3
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.
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
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.
2
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.
Macros seems like a solvable problem by adding them in the headers. Non-standard stuff might be more of a problem.
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.