Skip to content

Commit

Permalink
Merge pull request #223 from bandzaw/bandzaw-response-ctor-rvalue-args
Browse files Browse the repository at this point in the history
Turn Response's constructor arguments into rvalues to trigger move-construction
  • Loading branch information
whoshuu committed Oct 27, 2017
2 parents 0d7f9e4 + e8905e4 commit d81e3ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpr/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ Response Session::Impl::makeRequest(CURL* curl) {

auto header = cpr::util::parseHeader(header_string);
return Response{static_cast<std::int32_t>(response_code),
response_string,
header,
raw_url,
std::move(response_string),
std::move(header),
std::move(raw_url),
elapsed,
cookies,
error};
std::move(cookies),
std::move(error)};
}

// clang-format off
Expand Down

0 comments on commit d81e3ea

Please sign in to comment.