mirror of
https://github.com/boostorg/scope.git
synced 2026-01-26 07:02:09 +00:00
As suggested by Peter Dimov on boost-dev ML, scope_check functionality is merged into scope_exit. Thus scope_exit now has an optional condition function object, which by default always returns true. If a custom function object is specified, scope_exit works equivalently to the previous scope_check, i.e. calls the condition function object to check whether the action function object needs to be called.