Commit 3335da62 authored by Jonathan Dumaresq's avatar Jonathan Dumaresq

remove non usefull code.

parent ae48acbb
...@@ -2295,16 +2295,13 @@ public: ...@@ -2295,16 +2295,13 @@ public:
std::char_traits<char>::int_type get_character() noexcept override std::char_traits<char>::int_type get_character() noexcept override
{ {
auto res = fgetc(const_cast<FILE *>(file)); return fgetc(const_cast<FILE *>(file));
if(res == EOF)
return std::char_traits<char>::eof();
else
return static_cast<std::char_traits<char>::int_type>(res);
} }
private: private:
/// the file pointer to read from /// the file pointer to read from
const FILE * file; const FILE * file;
}; };
template<typename WideStringType> template<typename WideStringType>
class wide_string_input_adapter : public input_adapter_protocol class wide_string_input_adapter : public input_adapter_protocol
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment