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

Commit13a51fb

Browse files
committed
Filled in request_options copy constructor and assignment operator.
1 parent4260d6d commit13a51fb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎http/src/network/http/v2/client/request.hpp‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,20 @@ namespace network {
5757
/**
5858
* \brief Copy constructor.
5959
*/
60-
request_options(request_optionsconst &) =default;
60+
request_options(request_optionsconst &other)
61+
: resolve_timeout_(other.resolve_timeout_)
62+
, read_timeout_(other.read_timeout_)
63+
, total_timeout_(other.total_timeout_)
64+
, max_redirects_(other.max_redirects_) { }
6165

6266
/**
6367
* \brief Move constructor.
6468
*/
65-
request_options(request_options &&) =default;
69+
request_options(request_options &&other)
70+
: resolve_timeout_(std::move(other.resolve_timeout_))
71+
, read_timeout_(std::move(other.read_timeout_))
72+
, total_timeout_(std::move(other.total_timeout_))
73+
, max_redirects_(std::move(other.max_redirects_)) { }
6674

6775
/**
6876
* \brief Assignment operator.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp