Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
91ff96a7
Commit
91ff96a7
authored
Dec 12, 2018
by
Jonathan Dumaresq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the const attribute
parent
b7a2642f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/nlohmann/detail/input/input_adapters.hpp
include/nlohmann/detail/input/input_adapters.hpp
+3
-3
No files found.
include/nlohmann/detail/input/input_adapters.hpp
View file @
91ff96a7
...
...
@@ -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
{
public:
explicit
file_input_adapter
(
const
FILE
*
file
)
noexcept
explicit
file_input_adapter
(
FILE
*
file
)
noexcept
:
file
(
file
)
{}
std
::
char_traits
<
char
>::
int_type
get_character
()
noexcept
override
{
return
fgetc
(
const_cast
<
FILE
*>
(
file
)
);
return
fgetc
(
file
);
}
private:
/// the file pointer to read from
const
FILE
*
file
;
FILE
*
file
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment