Source release 19.2.0
This commit is contained in:
@@ -41,7 +41,8 @@ class ScopedObject {
|
||||
return *this;
|
||||
}
|
||||
|
||||
explicit operator bool() const { return ptr_ != nullptr; }
|
||||
bool ok() const { return ptr_ != nullptr; }
|
||||
explicit operator bool() const { return ok(); }
|
||||
|
||||
Type& operator*() { return *ptr_; }
|
||||
Type* get() const { return ptr_; }
|
||||
|
||||
Reference in New Issue
Block a user