From 99b8e856f676363cfcb66c7849b144f7c10d030a Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Wed, 11 Feb 2015 09:49:11 -0600 Subject: [PATCH] stackLimit_ --- src/lib_json/json_reader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index b4c8965..59409cc 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -902,7 +902,8 @@ public: bool strictRoot_; bool allowDroppedNullPlaceholders_; bool allowNumericKeys_; -}; // OldFeatures + int stackLimit_; +}; // OurFeatures // exact copy of Implementation of class Features // //////////////////////////////// @@ -1853,6 +1854,7 @@ CharReader* CharReaderBuilder::newCharReader() const features.strictRoot_ = settings_["strictRoot"].asBool(); features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); + features.stackLimit_ = settings_["stackLimit"].asInt(); return new OurCharReader(collectComments, features); } static void getValidReaderKeys(std::set* valid_keys)