diff --git a/include/mutable/util/OptField.hpp b/include/mutable/util/OptField.hpp index 085061c8..a46cb939 100644 --- a/include/mutable/util/OptField.hpp +++ b/include/mutable/util/OptField.hpp @@ -30,6 +30,12 @@ struct OptField return *this; } + T & operator*() { return value_; } + const T & operator*() const { return value_; } + + T * operator->() { return &value_; } + const T * operator->() const { return &value_; } + friend std::ostream & operator<<(std::ostream &out, const OptField &F) { return out << F.value_; } };