From 89f0ace6ee2f424fcc49235d24eafff055ed25a6 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 2 Jun 2019 21:50:01 +0900 Subject: [PATCH] fix: initialize comment container correctly --- toml/value.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/value.hpp b/toml/value.hpp index 220915f..864dffd 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -300,7 +300,7 @@ class basic_value } basic_value(basic_value&& v) : 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 {