Commit 7e2866dd authored by Mathieu STEFANI's avatar Mathieu STEFANI

gcc 4.6 fixes

parent 4b86d247
......@@ -353,8 +353,10 @@ namespace Async {
chain_->exc = std::move(exc);
chain_->state = State::Rejected;
auto core = chain_;
for (const auto& req: chain_->requests) {
req->reject(chain_);
req->reject(core);
}
});
}
......
......@@ -169,6 +169,22 @@ class ResponseStream : private Message {
public:
friend class Response;
ResponseStream(ResponseStream&& other)
: Message(std::move(other))
, peer_(std::move(other.peer_))
, buf_(std::move(other.buf_))
, io_(other.io_)
{ }
ResponseStream& operator=(ResponseStream&& other) {
Message::operator=(std::move(other));
peer_ = std::move(other.peer_);
buf_ = std::move(other.buf_);
io_ = other.io_;
return *this;
}
template<typename T>
friend
ResponseStream& operator<<(ResponseStream& stream, const T& val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment