File tree 3 files changed +11
-8
lines changed 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class Request {
145
145
class Properties {
146
146
public:
147
147
using ptr_t = std::shared_ptr<Properties>;
148
- using redirect_fn_t = std::function<void (int code, std::string& url,
148
+ using redirect_fn_t = std::function<void (int code, std::string& url,
149
149
const Reply& reply)>;
150
150
151
151
int maxRedirects = 3 ;
@@ -382,7 +382,7 @@ class RestClient {
382
382
done_handler.reset ();
383
383
});
384
384
385
- return move ( future) ;
385
+ return future;
386
386
}
387
387
388
388
Original file line number Diff line number Diff line change @@ -46,8 +46,15 @@ class ChunkedReaderImpl : public DataReader {
46
46
}
47
47
48
48
void Log (const boost::asio::const_buffers_1 buffers, const char *tag) {
49
+ #if __cplusplus >= 201703L
50
+ [[maybe_unused]]
51
+ #endif
49
52
const auto buf_len = boost::asio::buffer_size (*buffers.begin ());
50
53
54
+ #if __cplusplus < 201703L
55
+ static_cast <void >(buf_len);
56
+ #endif
57
+
51
58
// At the time of the implementation, there are never multiple buffers.
52
59
RESTC_CPP_LOG_TRACE_ (tag << ' ' << " # " << buf_len
53
60
<< " bytes: "
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ class IoWriterImpl : public DataWriter {
33
33
connection_->GetSocket ().AsyncWrite (buffers, ctx_.GetYield ());
34
34
}
35
35
36
- const auto bytes = boost::asio::buffer_size (buffers);
37
-
38
- RESTC_CPP_LOG_TRACE_ (" Wrote #" << bytes
36
+ RESTC_CPP_LOG_TRACE_ (" Wrote #" << boost::asio::buffer_size (buffers)
39
37
<< " bytes to " << connection_);
40
38
}
41
39
@@ -49,9 +47,7 @@ class IoWriterImpl : public DataWriter {
49
47
connection_->GetSocket ().AsyncWrite (buffers, ctx_.GetYield ());
50
48
}
51
49
52
- const auto bytes = boost::asio::buffer_size (buffers);
53
-
54
- RESTC_CPP_LOG_TRACE_ (" Wrote #" << bytes
50
+ RESTC_CPP_LOG_TRACE_ (" Wrote #" << boost::asio::buffer_size (buffers)
55
51
<< " bytes to " << connection_);
56
52
}
57
53
You can’t perform that action at this time.
0 commit comments