forked from boostorg/optional
Drop explicit bool idiom
This commit is contained in:
1 parent
794e03af30
commit
6ec468aff6
3 files changed
+2
-5
No files matched your search
@@ -160,8 +160,7 @@ public:
|
||||
throw_exception(bad_optional_access());
|
||||
}
|
||||
|
||||
bool operator!() const BOOST_NOEXCEPT { return ptr_ == 0; }
|
||||
BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT()
|
||||
explicit operator bool() const BOOST_NOEXCEPT { return ptr_ != 0; }
|
||||
|
||||
void reset() BOOST_NOEXCEPT { ptr_ = 0; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user