mirror of
https://github.com/boostorg/scope.git
synced 2026-01-19 04:42:10 +00:00
Instead of silently switching to the unique_resource implementation based on the "allocated" flag if the resource traits don't conform to the requirements, issue hard compilation errors. This should better protect against mistakes, where the user assumes unique_resource behaves as if it is using the resource traits while it actually doesn't. Improved documentation of requirements for resource traits and documented the "reduced" form of resource traits, where the traits only provide the default resource value but otherwise don't change unique_resource behavior.