diff --git a/toml/value.hpp b/toml/value.hpp index ef4bd15..9af4040 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -607,6 +607,19 @@ class value template typename detail::toml_default_type::type&& cast() &&; + std::string comment() const + { + return this->region_info_->comment(); + } + std::string comment_before() const + { + return this->region_info_->comment_before(); + } + std::string comment_inline() const + { + return this->region_info_->comment_inline(); + } + private: void cleanup() noexcept