Skip to content

Commit 66691bd

Browse files
committed
Fixed warning about using member in catch block
1 parent d2938c9 commit 66691bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/oup/observable_unique_ptr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class basic_observable_ptr final {
589589
basic_observable_ptr(get_or_create_block_from_object_(value), value) {
590590
} catch (...) {
591591
// Allocation of control block failed, delete input pointer and rethrow
592-
ptr_deleter(value);
592+
Deleter{}(value);
593593
}
594594

595595
/**

0 commit comments

Comments
 (0)