Skip to content

Commit 13a51fb

Browse files
committed
Filled in request_options copy constructor and assignment operator.
1 parent 4260d6d commit 13a51fb

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_options const &) = default;
60+
request_options(request_options const &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)