mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
fix: initialize comment container correctly
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user