Skip to content

Commit 40ce055

Browse files
committed
Fixed observable_unique_ptr::reset(T*) incorrectly marked noexcept
1 parent 9383b8d commit 40ce055

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
@@ -587,7 +587,7 @@ class observable_unique_ptr :
587587
/** \param ptr The new object to manage (can be `nullptr`, then this is equivalent to `reset()`)
588588
*/
589589
template<typename U, typename enable = std::enable_if_t<std::is_convertible_v<U*,T*>>>
590-
void reset(U* ptr) noexcept {
590+
void reset(U* ptr) {
591591
// Copy old pointer
592592
T* old_ptr = base::ptr_deleter.data;
593593
control_block_type* old_block = base::block;

0 commit comments

Comments
 (0)