Comment by smallstepforman
2 hours ago
The unique_ptr destructor is called on scope exit, and there are times you want this earlier before other critical code.
2 hours ago
The unique_ptr destructor is called on scope exit, and there are times you want this earlier before other critical code.
That's why you can define your own scope to control that.
[dead]