fix: initialize comment container correctly

This commit is contained in:
ToruNiina
2019-06-02 21:50:01 +09:00
parent 2e34035e7a
commit 89f0ace6ee

View File

@@ -300,7 +300,7 @@ class basic_value
} }
basic_value(basic_value&& v) basic_value(basic_value&& v)
: type_(v.type()), region_info_(std::move(v.region_info_)), : type_(v.type()), region_info_(std::move(v.region_info_)),
comments_(std::move(comments_)) comments_(std::move(v.comments_))
{ {
switch(this->type_) // here this->type_ is already initialized switch(this->type_) // here this->type_ is already initialized
{ {