Fix warning in catch_unique_ptr::bool()

This commit is contained in:
Tim Lyon authored and Martin Hořeňovský committed 2025-08-02 00:15:06 +02:00
1 parent ccabd4de89
commit fbfd13501c
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ namespace Detail {
}
explicit operator bool() const {
return m_ptr;
return m_ptr != nullptr;
}
friend void swap(unique_ptr& lhs, unique_ptr& rhs) {