Can't you use scope guards for that too? Those work for any scope, not only function scope.

Reply via email to