2 ms·
With std::unique_ptr (you can set the deleter) and ScopeGuard you don't need to create new types for every type of resource. I respectfully disagree with leaks
by Quiark 11y ago
With std::unique_ptr (you can set the deleter) and ScopeGuard you don't need to create new types for every type of resource.
I respectfully disagree with leaks not being a problem.