From 6b5fd349aad36ae62d5795ade50c6700465fb5c5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 26 Jun 2019 21:35:01 +0900 Subject: [PATCH] fix: initialize source_location correctly --- toml/value.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/value.hpp b/toml/value.hpp index 56bb948..3d24c83 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -1569,7 +1569,7 @@ class basic_value source_location location() const { - return source_location(this->region_info_); + return source_location(this->region_info_.get()); } comment_type const& comments() const noexcept {return this->comments_;}