👩💻 Join our community of thousands of amazing developers!
One of the many enhancements coming to libstdc++ shipped in GCC 13, which is expected to be released in May 2023, addresses an old pain point of the header. In current versions of libstdc++, including in a translation unit (TU) introduces a global constructor into the compiled object file, one that is responsible for initializing the standard stream objects std::cout, std::cin, etc., on program startup. In libstdc++ for GCC 13, this will be no more, as we’ve moved the initialization of the sta...