Resolves #414
This commit is contained in:
@@ -47,8 +47,14 @@ namespace cereal
|
||||
#endif // RAPIDJSON_ASSERT
|
||||
|
||||
// Enable support for parsing of nan, inf, -inf
|
||||
#ifndef CEREAL_RAPIDJSON_WRITE_DEFAULT_FLAGS
|
||||
#define CEREAL_RAPIDJSON_WRITE_DEFAULT_FLAGS kWriteNanAndInfFlag
|
||||
#endif
|
||||
|
||||
// Enable support for parsing of nan, inf, -inf
|
||||
#ifndef CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS
|
||||
#define CEREAL_RAPIDJSON_PARSE_DEFAULT_FLAGS kParseFullPrecisionFlag | kParseNanAndInfFlag
|
||||
#endif
|
||||
|
||||
#include "cereal/external/rapidjson/prettywriter.h"
|
||||
#include "cereal/external/rapidjson/ostreamwrapper.h"
|
||||
|
||||
Reference in New Issue
Block a user