diff --git a/README.md b/README.md index 4c9175ec..293b17bd 100644 --- a/README.md +++ b/README.md @@ -260,9 +260,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI I deeply appreciate the help of the following people. -- [Teemperor](https://github.com/Teemperor) implemented CMake support and lcov integration and realized escape handling in the string parser. +- [Teemperor](https://github.com/Teemperor) implemented CMake support and lcov integration, realized escape and Unicode handling in the string parser, and fixed the JSON serialization. - [elliotgoodrich](https://github.com/elliotgoodrich) fixed an issue with double deletion in the iterator classes. - [kirkshoop](https://github.com/kirkshoop) made the iterators of the class composable to other libraries. +- [wancw](https://github.com/wanwc) fixed a bug that hindered the class to compile with Clang. Thanks a lot for helping out! diff --git a/header_only/json.h b/header_only/json.h index 13a2b626..dc741f7d 100644 --- a/header_only/json.h +++ b/header_only/json.h @@ -175,7 +175,7 @@ class json T get() const; /// implicit conversion to string representation - operator const std::string() const; + operator std::string() const; /// implicit conversion to integer (only for numbers) operator int() const; /// implicit conversion to double (only for numbers) @@ -894,7 +894,7 @@ json::object_t json::get() const } } -json::operator const std::string() const +json::operator std::string() const { return get(); }