Sean Eskapp:

> It was recommended to me to use structs for RAII instead of scope classes,
> since scope is being removed (?). However, since default-constructors for
> structs can't exist, how does one do this?

Inside the ~this() you may put code, to deallocate resources you have allocated 
in an explicit constructor (or in some creation method). Is this enough?

Bye,
bearophile

Reply via email to