mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Update rapidjson_utils.hpp to use iterative parsing
This commit is contained in:
parent
f544cd020a
commit
3621f98d43
@ -20,7 +20,7 @@ inline bool loadDocument(const std::string &path, rapidjson::GenericDocument<Enc
|
||||
}
|
||||
|
||||
// Parse schema
|
||||
document.template Parse<0>(file.c_str());
|
||||
document.template Parse<rapidjson::kParseIterativeFlag>(file.c_str());
|
||||
if (document.HasParseError()) {
|
||||
std::cerr << "RapidJson failed to parse the document:" << std::endl;
|
||||
std::cerr << "Parse error: " << document.GetParseError() << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user