News for hackers. Stuff that matters.
Re:Care is needed to use C++ std:optional with non-trivial o... by zabzonk on Friday January 13, 2023 @08:29AM (#34367358)
i have been using std::string for many, many years and have never needed to know how my specific standard libraries implement it. if i want to worry about performance, i do it by timing and profiling, not reading standard library code.
Re:Care is needed to use C++ std:optional with non-trivial o... by secondcoming on Friday January 13, 2023 @08:46AM (#34367556)
Really, you didn't care that C++11 forbade Copy-On-Write for std::string, or you never cared about the Short String Optimisation length that each platform supports?
Re:Care is needed to use C++ std:optional with non-trivial o... by zabzonk on Friday January 13, 2023 @09:57AM (#34368559)
really, i didn't care. cow has always seemed like a mistake to me, and what am i going to do about sso? make my strings intentionally shorter? or longer?