News for hackers. Stuff that matters.
Re:The Horror in the Standard Library by kazinator on Sunday May 07, 2017 @12:29PM (#14286184)
> It turned out that the std::string empty string reference count was just doing a vanilla ++, no locking, nothing, variable not marked volatile, nothing.

The whole implementation is smells of silliness, because there is no need to track how many references there are to a global null string, which need not even be dynamically allocated.

Re:The Horror in the Standard Library by bluejekyll on Sunday May 07, 2017 @04:47PM (#14287570)
I know; I've often wondered if this was changed, never went back to look.
Re:The Horror in the Standard Library by daemin on Monday May 08, 2017 @08:42AM (#14291009)
Probably a few years ago, around C++11 time. Where the standard made it not possible to have a Copy-on-Write implementation of string.