Re:Cost of enum-to-string: C++26 reflection vs. the old ways
by bluGill on Wednesday May 13, 2026 @07:39PM
(#48129156)
The standard library shows the roots of the mid-1990s and there are a lot of things we would definitely do different today. However, it is still extremely well defined compared to most everything else. C++ is one of the few languages where the library actually guarantees how an algorithm works, which is both good and bad. The bad part is some things that made perfect sense in 1995 simply don't make sense in our modern CPUs where cache is important.
PFR has given us reflection since C++14.
I also don't think the Standard Library is particularly well-defined nor well-implemented, as demonstrated by the atrocious compilation times.