@@ -889,7 +889,7 @@ bool Reader::good() const {
889
889
class OurFeatures {
890
890
public:
891
891
static OurFeatures all ();
892
- OurFeatures ();
892
+ OurFeatures () = default ;
893
893
bool allowComments_;
894
894
bool strictRoot_;
895
895
bool allowDroppedNullPlaceholders_;
@@ -904,15 +904,6 @@ class OurFeatures {
904
904
// exact copy of Implementation of class Features
905
905
// ////////////////////////////////
906
906
907
- OurFeatures::OurFeatures ()
908
- : allowComments_(true ), strictRoot_(false )
909
- , allowDroppedNullPlaceholders_(false ), allowNumericKeys_(false )
910
- , allowSingleQuotes_(false )
911
- , failIfExtra_(false )
912
- , allowSpecialFloats_(false )
913
- {
914
- }
915
-
916
907
OurFeatures OurFeatures::all () { return OurFeatures (); }
917
908
918
909
// Implementation of class Reader
@@ -1979,6 +1970,7 @@ void CharReaderBuilder::strictMode(Json::Value* settings)
1979
1970
(*settings)[" allowDroppedNullPlaceholders" ] = false ;
1980
1971
(*settings)[" allowNumericKeys" ] = false ;
1981
1972
(*settings)[" allowSingleQuotes" ] = false ;
1973
+ (*settings)[" stackLimit" ] = 1000 ;
1982
1974
(*settings)[" failIfExtra" ] = true ;
1983
1975
(*settings)[" rejectDupKeys" ] = true ;
1984
1976
(*settings)[" allowSpecialFloats" ] = false ;
0 commit comments