Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb9efd09

Browse files
committed
Merge pull request#561 from tpecholt/master
fix copy ctor & assignment op
2 parents84119e5 +0fa1805 commitb9efd09

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎http/src/network/protocol/http/message/async_message.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ template <class Tag> struct async_message {
4646
destination_(other.destination_),
4747
status_(other.status_),
4848
headers_(other.headers_),
49-
body_(other.body_) {}
49+
body_(other.body_),
50+
added_headers(other.added_headers),
51+
removed_headers(other.removed_headers),
52+
retrieved_headers_(other.retrieved_headers_) {}
5053

5154
string_typeconststatus_message()const {return status_message_.get(); }
5255

@@ -117,6 +120,9 @@ template <class Tag> struct async_message {
117120
std::swap(destination_, other.destination_);
118121
std::swap(headers_, other.headers_);
119122
std::swap(body_, other.body_);
123+
std::swap(added_headers, other.added_headers);
124+
std::swap(removed_headers, other.removed_headers);
125+
std::swap(retrieved_headers_, other.retrieved_headers_);
120126
}
121127

122128
async_message&operator=(async_message other) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp