|
|
|
|
|
by contravariant
1828 days ago
|
|
Well it's not so much being protected by patching up references, but more that C++ is (as far as I know) the only language that doesn't complain when you create a reference to an object that can move away. Most languages either don't have the concept of classes or ensure that invalidating references is an explicit operation (such as calling the destructor). |
|