3 ms·
RAII is about resources, not memory. If you don't want to tie memory lifetime to object lifetime then don't. That's the entire point of things like smart poin
by mreiland 12y ago
RAII is about resources, not memory. If you don't want to tie memory lifetime to object lifetime then don't. That's the entire point of things like smart pointers.
That's exactly the issue SFML had. This idea that RAII implies tying resources directly to an objects lifetime. It doesn't.