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
881cd3f4
Commit
881cd3f4
authored
May 30, 2017
by
HenryLee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the iter_impl<const basic_json> copy constructor and copy assignment
parent
790e7ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
33 deletions
+7
-33
src/json.hpp
src/json.hpp
+7
-33
No files found.
src/json.hpp
View file @
881cd3f4
...
...
@@ -8054,11 +8054,12 @@ class basic_json
}
/*!
@note The conventional copy constructor is not defined. It is replaced
by either of the following two converting constructors.
They support copy from iterator to iterator,
copy from const iterator to const iterator,
and conversion from iterator to const iterator.
@note The conventional copy constructor and copy assignment are
implicitly defined.
Combined with the following converting constructor and assigment,
they support: copy from iterator to iterator,
copy from const iterator to const iterator,
and conversion from iterator to const iterator.
However conversion from const iterator to iterator is not defined.
*/
...
...
@@ -8072,16 +8073,7 @@ class basic_json
{}
/*!
@brief converting constructor
@param[in] other const iterator to copy from
@note It is not checked whether @a other is initialized.
*/
iter_impl
<
const
basic_json
>
(
const
iter_impl
<
const
basic_json
>&
other
)
noexcept
:
m_object
(
other
.
m_object
),
m_it
(
other
.
m_it
)
{}
/*!
@brief copy assignment
@brief converting assignment
@param[in,out] other non-const iterator to copy from
@return const/non-const iterator
@note It is not checked whether @a other is initialized.
...
...
@@ -8098,24 +8090,6 @@ class basic_json
return
*
this
;
}
/*!
@brief copy assignment
@param[in,out] other const iterator to copy from
@return const iterator
@note It is not checked whether @a other is initialized.
*/
iter_impl
<
const
basic_json
>&
operator
=
(
iter_impl
<
const
basic_json
>
other
)
noexcept
(
std
::
is_nothrow_move_constructible
<
pointer
>::
value
and
std
::
is_nothrow_move_assignable
<
pointer
>::
value
and
std
::
is_nothrow_move_constructible
<
struct
internal_iterator
>::
value
and
std
::
is_nothrow_move_assignable
<
struct
internal_iterator
>::
value
)
{
std
::
swap
(
m_object
,
other
.
m_object
);
std
::
swap
(
m_it
,
other
.
m_it
);
return
*
this
;
}
private:
/*!
@brief set the iterator to the first value
...
...
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