31 ms·
Ah, I missed the "copy wholesale" aspect. When I started reading it, the first thing that came to my mind was the issue with copying the structs. The article s
by Measter 2y ago
Ah, I missed the "copy wholesale" aspect.
When I started reading it, the first thing that came to my mind was the issue with copying the structs. The article started looking at the issue, but didn't really follow further with the changes needed to make it work, which is that you start needing to introduce tracking which instance is responsible for the resources and providing a way to transfer that responsibility (a.k.a. ownership and move semantics).