3 ms·
I mean that CoW classes like Qt's QStringList do the same data sharing without being immutable.
by slavik81 7y ago
I mean that CoW classes like Qt's QStringList do the same data sharing without being immutable.
- slavik81 7y agoAdmittedly, it's pretty easy to accidentally make unnecessary non-const accesses in modern C++. An immutable API would certainly avoid a lot of qAsConst casts.