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
798e83a0
Commit
798e83a0
authored
Jun 21, 2019
by
Isaac Nickaein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround msvc2015 bug with explicit copy-constructor for const_iterator
parent
d28b4b90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/nlohmann/detail/iterators/iter_impl.hpp
include/nlohmann/detail/iterators/iter_impl.hpp
+7
-0
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+7
-0
No files found.
include/nlohmann/detail/iterators/iter_impl.hpp
View file @
798e83a0
...
...
@@ -118,6 +118,13 @@ class iter_impl
to iterator is not defined.
*/
/* We had to explicitly define the copy constructor for the const
case to circumvent a bug on msvc 2015 debug build.
More info: https://github.com/nlohmann/json/issues/1608
*/
iter_impl
(
const
iter_impl
<
const
BasicJsonType
>&
other
)
noexcept
:
m_object
(
other
.
m_object
),
m_it
(
other
.
m_it
)
{}
/*!
@brief converting constructor
@param[in] other non-const iterator to copy from
...
...
single_include/nlohmann/json.hpp
View file @
798e83a0
...
...
@@ -7821,6 +7821,13 @@ class iter_impl
to iterator is not defined.
*/
/* We had to explicitly define the copy constructor for the const
case to circumvent a bug on msvc 2015 debug build.
More info: https://github.com/nlohmann/json/issues/1608
*/
iter_impl
(
const
iter_impl
<
const
BasicJsonType
>&
other
)
noexcept
:
m_object
(
other
.
m_object
),
m_it
(
other
.
m_it
)
{}
/*!
@brief converting constructor
@param[in] other non-const iterator to copy from
...
...
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