Skip to content

Commit 99b8e85

Browse files
committed
stackLimit_
1 parent 89b72e1 commit 99b8e85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib_json/json_reader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ class OurFeatures {
902902
bool strictRoot_;
903903
bool allowDroppedNullPlaceholders_;
904904
bool allowNumericKeys_;
905-
}; // OldFeatures
905+
int stackLimit_;
906+
}; // OurFeatures
906907

907908
// exact copy of Implementation of class Features
908909
// ////////////////////////////////
@@ -1853,6 +1854,7 @@ CharReader* CharReaderBuilder::newCharReader() const
18531854
features.strictRoot_ = settings_["strictRoot"].asBool();
18541855
features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool();
18551856
features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool();
1857+
features.stackLimit_ = settings_["stackLimit"].asInt();
18561858
return new OurCharReader(collectComments, features);
18571859
}
18581860
static void getValidReaderKeys(std::set<std::string>* valid_keys)

0 commit comments

Comments
 (0)