From 7258c523340bb262d29daba68be06ca9539d2ce5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 3 Jun 2019 22:17:10 +0900 Subject: [PATCH] feat: enable to edit comments through memfun --- toml/value.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toml/value.hpp b/toml/value.hpp index efe01e8..eaaaf23 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -977,16 +977,14 @@ class basic_value array_type && as_array() && noexcept {return std::move(this->array_.value());} table_type && as_table() && noexcept {return std::move(this->table_.value());} - comment_type const& comments() const noexcept - { - return this->comments_; - } - source_location location() const { return source_location(this->region_info_); } + comment_type const& comments() const noexcept {return this->comments_;} + comment_type& comments() noexcept {return this->comments_;} + private: void cleanup() noexcept