BAN: Mark RefPtr and WeakPtr operator bool() as explicit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user