Merge pull request #23 from lioncash/explicit

BooObject: Make ObjToken operator bool explicit
This commit is contained in:
Phillip Stephens 2019-08-18 12:08:47 -07:00 committed by GitHub
commit 6be2f7520e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public:
T* cast() const noexcept {
return static_cast<T*>(m_obj);
}
operator bool() const noexcept { return m_obj != nullptr; }
explicit operator bool() const noexcept { return m_obj != nullptr; }
void reset() noexcept {
if (m_obj)
m_obj->decrement();