Commit 91ff96a7 authored by Jonathan Dumaresq's avatar Jonathan Dumaresq

remove the const attribute

parent b7a2642f
...@@ -53,17 +53,17 @@ Input adapter for stdio file access. This adapter read only 1 byte and do not us ...@@ -53,17 +53,17 @@ Input adapter for stdio file access. This adapter read only 1 byte and do not us
class file_input_adapter : public input_adapter_protocol class file_input_adapter : public input_adapter_protocol
{ {
public: public:
explicit file_input_adapter(const FILE* file) noexcept explicit file_input_adapter(FILE* file) noexcept
: file(file) : file(file)
{} {}
std::char_traits<char>::int_type get_character() noexcept override std::char_traits<char>::int_type get_character() noexcept override
{ {
return fgetc(const_cast<FILE*>(file)); return fgetc(file);
} }
private: private:
/// the file pointer to read from /// the file pointer to read from
const FILE* file; FILE* file;
}; };
......
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