We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe5491b commit 07bac43Copy full SHA for 07bac43
include/oup/observable_unique_ptr.hpp
@@ -405,7 +405,7 @@ class observable_unique_ptr_base {
405
/// Check if this pointer points to a valid object.
406
/** \return `true` if the pointed object is valid, 'false' otherwise
407
*/
408
- explicit operator bool() noexcept {
+ explicit operator bool() const noexcept {
409
return ptr_deleter.data != nullptr;
410
}
411
};
@@ -1233,7 +1233,7 @@ class observer_ptr {
1233
1234
1235
1236
1237
return block != nullptr && !block->expired();
1238
1239
0 commit comments