This is generally more flexible and less error prone. The struct implements a proper descructorfor this anyway. That also makes the separate free function unnecessary-- it's redundant with the destructor.
This is generally more flexible and less error prone. The struct implements a proper descructorfor this anyway. That also makes the separate free function unnecessary-- it's redundant with the destructor.