summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2021-02-05 21:35:37 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-03-19 00:31:35 +0000
commit78fa6c94992a6d1a140da1354448a004e62c9683 (patch)
treec21183a39d58ba9ccc89d9d8ea6fe1aa9de2ec35 /Common/interface
parentMerged master (diff)
downloadDiligentCore-78fa6c94992a6d1a140da1354448a004e62c9683.tar.gz
DiligentCore-78fa6c94992a6d1a140da1354448a004e62c9683.zip
merged with resource_signature
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/RefCntAutoPtr.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Common/interface/RefCntAutoPtr.hpp b/Common/interface/RefCntAutoPtr.hpp
index 45dbf574..0c261bd6 100644
--- a/Common/interface/RefCntAutoPtr.hpp
+++ b/Common/interface/RefCntAutoPtr.hpp
@@ -195,11 +195,11 @@ public:
// All the access functions do not require locking reference counters pointer because if it is valid,
// the smart pointer holds strong reference to the object and it thus cannot be released by
// ohter thread
- bool operator!() const noexcept { return m_pObject == nullptr; }
- operator bool() const noexcept { return m_pObject != nullptr; }
- bool operator==(const RefCntAutoPtr& Ptr) const noexcept { return m_pObject == Ptr.m_pObject; }
- bool operator!=(const RefCntAutoPtr& Ptr) const noexcept { return m_pObject != Ptr.m_pObject; }
- bool operator<(const RefCntAutoPtr& Ptr) const noexcept { return static_cast<const T*>(*this) < static_cast<const T*>(Ptr); }
+ bool operator!() const noexcept { return m_pObject == nullptr; }
+ explicit operator bool() const noexcept { return m_pObject != nullptr; }
+ bool operator==(const RefCntAutoPtr& Ptr) const noexcept { return m_pObject == Ptr.m_pObject; }
+ bool operator!=(const RefCntAutoPtr& Ptr) const noexcept { return m_pObject != Ptr.m_pObject; }
+ bool operator<(const RefCntAutoPtr& Ptr) const noexcept { return static_cast<const T*>(*this) < static_cast<const T*>(Ptr); }
T& operator*() noexcept { return *m_pObject; }
const T& operator*() const noexcept { return *m_pObject; }