diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 36939b31..2e1fdbd5 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -2295,16 +2295,13 @@ public: std::char_traits::int_type get_character() noexcept override { - auto res = fgetc(const_cast(file)); - if(res == EOF) - return std::char_traits::eof(); - else - return static_cast::int_type>(res); + return fgetc(const_cast(file)); } private: /// the file pointer to read from const FILE * file; }; + template class wide_string_input_adapter : public input_adapter_protocol {