3 ms·
FWIW, to prevent the bug where a = b is slow for big types, Google's C++ style guide used to mandate DISALLOW_COPY_AND_ASSIGN (which used to be DISALLOW_EVIL_CO
by chubot 4y ago
FWIW, to prevent the bug where a = b is slow for big types, Google's C++ style guide used to mandate DISALLOW_COPY_AND_ASSIGN (which used to be DISALLOW_EVIL_CONSTRUCTORS I think) on all types (most types?)
Looks like that's been gone for awhile in favor of C++ 11 stuff, which I don't really like:
https://google.github.io/styleguide/cppguide.html#Copyable_Movable_Types https://google.github.io/styleguide/cppguide.html#Copyable_M...
A lot of good software was written in that style, but it has grown bureaucratic over time, and as the C++ language evolved