mirror of
https://github.com/boostorg/scope.git
synced 2026-02-02 21:12:17 +00:00
Scope guard factory functions used to generate scope guards with incorrect action and condition types if the factory was called with function references. The scope guard template arguments used to be function types instead of references to functions. Also, deduction guides used to decay the arguments, which would produce scope guards with pointers to functions in template arguments. Although this worked, formally only references to functions are supported. So changed the deduction guides to produce references to functions. Updated docs and tests. Fixes https://github.com/Lastique/scope/issues/6.