-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STL headers should require C++ and forbid C #2148
Conversation
There will be a stealth merge conflict with #2140, where |
@fsb4000 @CaseyCarter I've pushed a series of commits:
|
I have mirrored this to internal MSVC-PR-347845 (all by itself, as I believe it has a moderate risk of breaking stuff). Please notify me if any further changes are pushed. |
Thanks for improving the diagnostics here! 🎉 😸 🚀 |
moved all c++ specific implementation details, as well as references to any STL header to their respective compilation units. created a seperate compilation unit for pthread as to allow for forward declaring the necessary structs in a consistent c fashion, while implementing it in c++ in the unit. this allows for seperation of header use for c without pulling in any STL header, as this will lead to compiler errors on windows. for details checkout ofiwg/libfabric#7041 (comment) or the STL commit microsoft/STL#2148
moved all c++ specific implementation details, as well as references to any STL header to their respective compilation units. created a seperate compilation unit for pthread as to allow for forward declaring the necessary structs in a consistent c fashion, while implementing it in c++ in the unit. this allows for seperation of header use for c without pulling in any STL header, as this will lead to compiler errors on windows. for details checkout ofiwg/libfabric#7041 (comment) or the STL commit microsoft/STL#2148
Fixes #1141