From 7c144f7047ad507912e7fe4c55f516d6afa4cb85 Mon Sep 17 00:00:00 2001 From: Michael de Lang Date: Fri, 3 Sep 2021 13:17:01 +0200 Subject: [PATCH] Fix bug where includer never got added --- configuru.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuru.hpp b/configuru.hpp index e140dc6..64aeacc 100644 --- a/configuru.hpp +++ b/configuru.hpp @@ -3078,7 +3078,7 @@ namespace configuru dst = parse_file(path.c_str(), _options, child_doc, _info); _info.parsed_files[path] = dst; } else { - auto child_doc = it->second.doc(); + auto &child_doc = it->second.doc(); child_doc->includers.emplace_back(_doc, _line_nr); dst = it->second; }