feat: enable to edit comments through memfun

This commit is contained in:
ToruNiina
2019-06-03 22:17:10 +09:00
parent 407d9223f6
commit 7258c52334

View File

@@ -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