3 ms·
Copy-on-Write with Deducing This
- leni536 4y ago> So while this was a cute approach to this problem, and there probably is a good use-case out there for using explicit object parameters with a different type, this ain’t it. This might be salvageable by having two kinds of the `MutableState` classes, one for non-const member functions that don't leak references into the vector (clear, push_back, ...) and one for member functions that do (operator[]).