[glacier] Don't implicitly convert error_or to bool

This commit is contained in:
Drew Galbraith 2023-07-05 16:02:47 -07:00
parent c057da88ad
commit b83385dfa6
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class ErrorOr {
ErrorOr(T&& obj) : obj_(glcr::Move(obj)), ok_(true) {}
bool ok() { return ok_; }
operator bool() { return ok_; }
explicit operator bool() { return ok_; }
T& value() { return obj_; }