Fix warning in catch_unique_ptr::bool()

This commit is contained in:
Tim Lyon
2025-08-02 00:15:06 +02:00
committed by Martin Hořeňovský
parent ccabd4de89
commit fbfd13501c
+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) {