diff --git a/README.md b/README.md index 8c1ea449..91bb1e0d 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ I deeply appreciate the help of the following people. - [Eric Cornelius](https://github.com/EricMCornelius) pointed out a bug in the handling with NaN and infinity values. He also improved the performance of the string escaping. - [易思龙](https://github.com/likebeta) implemented a conversion from anonymous enums. - [kepkin](https://github.com/kepkin) patiently pushed forward the support for Microsoft Visual studio. -- [gregmarr](https://github.com/gregmarr) simplified the implementation of reverse iterators. +- [gregmarr](https://github.com/gregmarr) simplified the implementation of reverse iterators and helped with numerous hints and improvements. - [Caio Luppi](https://github.com/caiovlp) fixed a bug in the Unicode handling. - [dariomt](https://github.com/dariomt) fixed some typos in the examples. - [Daniel Frey](https://github.com/d-frey) cleaned up some pointers and implemented exception-safe memory allocation. diff --git a/src/json.hpp b/src/json.hpp index 4b6b8790..82fa3b24 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -7866,8 +7866,7 @@ no parse error occurred. */ inline nlohmann::json operator "" _json(const char* s, std::size_t) { - return nlohmann::json::parse(reinterpret_cast - (const_cast(s))); + return nlohmann::json::parse(reinterpret_cast(s)); } #endif diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 0f6b0eaf..0dfa6737 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -7145,8 +7145,7 @@ no parse error occurred. */ inline nlohmann::json operator "" _json(const char* s, std::size_t) { - return nlohmann::json::parse(reinterpret_cast - (const_cast(s))); + return nlohmann::json::parse(reinterpret_cast(s)); } #endif