Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
88a1ba9e
Commit
88a1ba9e
authored
Sep 25, 2019
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide default implementations for move constructor/assignment in GenericMember
parent
c36b713c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
document.h
include/rapidjson/document.h
+8
-2
No files found.
include/rapidjson/document.h
View file @
88a1ba9e
...
...
@@ -70,10 +70,16 @@ public:
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
//! Move constructor in C++11
GenericMember
(
GenericMember
&&
rhs
)
RAPIDJSON_NOEXCEPT
=
default
;
GenericMember
(
GenericMember
&&
rhs
)
RAPIDJSON_NOEXCEPT
:
name
(
std
::
move
(
rhs
.
name
)),
value
(
std
::
move
(
rhs
.
value
))
{
}
//! Move assignment in C++11
GenericMember
&
operator
=
(
GenericMember
&&
rhs
)
RAPIDJSON_NOEXCEPT
=
default
;
GenericMember
&
operator
=
(
GenericMember
&&
rhs
)
RAPIDJSON_NOEXCEPT
{
return
*
this
=
static_cast
<
GenericMember
&>
(
rhs
);
}
#endif
//! Assignment with move semantics.
...
...
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