From cf31193de2082f6332a11df28862232169a4c271 Mon Sep 17 00:00:00 2001 From: Jonathan Dumaresq Date: Wed, 12 Dec 2018 14:46:52 -0500 Subject: [PATCH] create single json.hpp file --- single_include/nlohmann/json.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 871bb9ae..93ed2b24 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -2097,22 +2097,22 @@ using input_adapter_t = std::shared_ptr; /*! Input adapter for stdio file access. This adapter read only 1 byte and do not use any - buffer. This adapter is a very low level adapter. This adapter + buffer. This adapter is a very low level adapter. */ class file_input_adapter : public input_adapter_protocol { public: - explicit file_input_adapter(const FILE* file) noexcept + explicit file_input_adapter(FILE* file) noexcept : file(file) {} std::char_traits::int_type get_character() noexcept override { - return fgetc(const_cast(file)); + return fgetc(file); } private: /// the file pointer to read from - const FILE* file; + FILE* file; };