From 3621f98d43a7fc97884b9e826ddb16204488ffe4 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Thu, 7 Jan 2021 21:34:51 +1100 Subject: [PATCH] Update rapidjson_utils.hpp to use iterative parsing --- include/valijson/utils/rapidjson_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/valijson/utils/rapidjson_utils.hpp b/include/valijson/utils/rapidjson_utils.hpp index b539ce2..aae865c 100644 --- a/include/valijson/utils/rapidjson_utils.hpp +++ b/include/valijson/utils/rapidjson_utils.hpp @@ -20,7 +20,7 @@ inline bool loadDocument(const std::string &path, rapidjson::GenericDocument(file.c_str()); + document.template Parse(file.c_str()); if (document.HasParseError()) { std::cerr << "RapidJson failed to parse the document:" << std::endl; std::cerr << "Parse error: " << document.GetParseError() << std::endl;