syserror.cpp: update _Syserror_map#2742
Conversation
|
For clarity: I'm tagging this "blocked" since it depends on a runtime update for correctness. As fsb4000 says in the OP, we'll merge this for 17.4 when the redist is unlocked. |
|
Note that this affects the behavior of #include <future>
#include <iostream>
#include <system_error>
using namespace std;
int main() {
cout << "future_category: " << error_code{0, future_category()}.message() << "\n";
cout << "generic_category: " << error_code{0, generic_category()}.message() << "\n";
cout << "iostream_category: " << error_code{0, iostream_category()}.message() << "\n";
cout << "system_category: " << error_code{0, system_category()}.message() << "\n";
}Before #2560:With #2560 (shipped in VS 2022 17.2):This PR:This seems reasonable to me, as Lines 63 to 68 in 60decd0 Lines 33 to 35 in 60decd0 |
The fact that |
|
Confirming that this is blocked - at this time, we aren't certain whether code is flowing into 17.4 Preview 1 (locked) or Preview 2 (unlocked). Moving to cryo-stasis for now. |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks for cleaning up this code and improving the behavior of the error categories! 🧹 🚀 😸 |
Fixes #2561
This PR affects redist.
It is expected that the fix can be included in VS 2022 17.4 Preview 2.
The changes is tested via:
STL/tests/std/tests/Dev11_0493504_error_category_lifetime/test.cpp
Lines 31 to 40 in 60decd0