diff --git a/include/cpptoml.h b/include/cpptoml.h index 5a00da3..6f64e26 100644 --- a/include/cpptoml.h +++ b/include/cpptoml.h @@ -84,6 +84,11 @@ class option return &value_; } + const T& value() const + { + return value_; + } + template T value_or(U&& alternative) const {