Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thallium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
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
sds
thallium
Commits
ccc99e41
Commit
ccc99e41
authored
Aug 08, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added move-constructor to async_response
parent
ef51919d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
include/thallium/async_response.hpp
include/thallium/async_response.hpp
+31
-0
No files found.
include/thallium/async_response.hpp
View file @
ccc99e41
...
...
@@ -50,6 +50,37 @@ private:
public:
/**
* @brief Copy constructor is deleted.
*/
async_response
(
const
async_response
&
other
)
=
delete
;
/**
* @brief Move-constructor.
*
* @param other async_response to move from.
*/
async_response
(
async_response
&&
other
)
:
m_request
(
other
.
m_request
)
,
m_engine
(
other
.
m_engine
)
,
m_handle
(
other
.
m_handle
)
,
m_buffer
(
std
::
move
(
other
.
m_buffer
))
,
m_ignore_response
(
other
.
m_ignore_response
)
{
other
.
m_request
=
MARGO_REQUEST_NULL
;
other
.
m_engine
=
nullptr
;
other
.
m_handle
=
HG_HANDLE_NULL
;
}
/**
* @brief Copy-assignment operator is deleted.
*/
async_response
&
operator
=
(
const
async_response
&
other
)
=
delete
;
/**
* @brief Move-assignment operator is deleted.
*/
async_response
&
operator
=
(
async_response
&&
other
)
=
delete
;
/**
* @brief Destructor.
*/
...
...
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