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;