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 75f99a7 commit 528e9c5Copy full SHA for 528e9c5
src/Include/xrRender/FactoryPtr.h
@@ -64,7 +64,11 @@ class FactoryPtr
64
65
T& operator*() const { return *m_pObject; }
66
T* operator->() const { return m_pObject; }
67
- operator bool() const { return m_pObject; }
+
68
+ [[nodiscard]]
69
+ explicit operator bool() const { return m_pObject; }
70
71
72
bool operator!() const { return m_pObject == nullptr; }
73
74
private:
0 commit comments