Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed forwarding resource and deleter when constructor may throw.
When resource_holder and deleter_holder are constructed, and resource/deleter constructor may throw, remove forwarding the source resource/deleter to the constructor. Forwarding there has no effect anyway, as the unique_resource constructor already ensures the corresponding argument is passed as an lvalue reference by using move_or_copy_construct_ref.
- Loading branch information