[committed] libstdc++: Improvements to standard error category objects (part deux)

2022-01-05 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. In r12-3860 the error categories in were made final and immortal, but I missed the categories for and . This makes the same changes to those. libstdc++-v3/ChangeLog: * src/c++11/cxx11-ios_failure.cc (io_error_category): Define class a

[committed] libstdc++: Improvements to standard error category objects

2021-09-23 Thread Jonathan Wakely via Gcc-patches
This ensures that the objects returned by std::generic_category() and std::system_category() are initialized before any code starts executing, and are not destroyed at the end of the program. This means it is always safe to access them, even during startup and termination. See LWG 2992 and P1195R0