In cereal/external/rapidjson/reader.hpp we have the following lines:
*! \def CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS
\ingroup CEREAL_RAPIDJSON_CONFIG
\brief User-defined kParseDefaultFlags definition.
User can define this as any \c ParseFlag combinations.
*/
#ifndef CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS
#define CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS kParseNoFlags
#endif
However in 1e5e648 the following 2 lines were added:
#define CEREAL_RAPIDJSON_WRITE_DEFAULT_FLAGS kWriteNanAndInfFlag
#define CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS kParseFullPrecisionFlag | kParseNanAndInfFlag
These should be simmilar to the lines above:
#ifndef CEREAL_RAPIDJSON_WRITE_DEFAULT_FLAGS
#define CEREAL_RAPIDJSON_WRITE_DEFAULT_FLAGS kWriteNanAndInfFlag
#endif
#ifndef CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS
#define CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS kParseFullPrecisionFlag | kParseNanAndInfFlag
#endif
Not doing so breaks anyone defining either of the default flag sets.
In
cereal/external/rapidjson/reader.hppwe have the following lines:However in 1e5e648 the following 2 lines were added:
These should be simmilar to the lines above:
Not doing so breaks anyone defining either of the default flag sets.