Skip to content

Commit b9efd09

Browse files
committed
Merge pull request cpp-netlib#561 from tpecholt/master
fix copy ctor & assignment op
2 parents 84119e5 + 0fa1805 commit b9efd09

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_type const status_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)