BAN: Mark RefPtr and WeakPtr operator bool() as explicit

This commit is contained in:
2024-06-17 20:19:36 +03:00
parent dafd2fecf7
commit 511fc870a1
4 changed files with 13 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ namespace BAN
bool valid() const { return m_link && m_link->valid(); }
operator bool() const { return valid(); }
explicit operator bool() const { return valid(); }
private:
WeakPtr(const RefPtr<WeakLink<T>>& link)