From 3335da622a987d565e4790964c087d113a8d32d5 Mon Sep 17 00:00:00 2001 From: Jonathan Dumaresq Date: Wed, 12 Dec 2018 09:32:52 -0500 Subject: [PATCH] remove non usefull code. --- single_include/nlohmann/json.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 {