Add const qualifiers to member methods in Optional

pull/17784/head
Yash Tibrewal 6 years ago
parent ca90fd501d
commit bf8777dc30
  1. 4
      src/core/lib/gprpp/optional.h

@ -31,11 +31,11 @@ class Optional {
set_ = true;
}
bool has_value() { return set_; }
bool has_value() const { return set_; }
void reset() { set_ = false; }
T value() { return value_; }
T value() const { return value_; }
private:
T value_;

Loading…
Cancel
Save