Skip to content

Commit dd69300

Browse files
committed
Remove user-declared constructors for response class
Removed the following defaulted constructors: * Default Constructor * Copy Constructor * Move Constructor The defaulted move constructor prevents implicit declaration of the copy assignment operator, which results in compiler errors since std::promise requires it. All 3 user-declared methods removed here are implicitly declared by the compiler anyway, so no need to default them in the first place. Relates to cpp-netlib#547
1 parent 769e5c6 commit dd69300

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

http/src/network/http/v2/client/response.hpp

-17
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,6 @@ class response {
6060
*/
6161
typedef headers_type::const_iterator const_headers_iterator;
6262

63-
/**
64-
* \brief Constructor.
65-
*/
66-
response() = default;
67-
68-
/**
69-
* \brief Copy constructor.
70-
* \param other The other response object.
71-
*/
72-
response(const response &other) = default;
73-
74-
/**
75-
* \brief Move constructor.
76-
* \param other The other response object.
77-
*/
78-
response(response &&other) noexcept = default;
79-
8063
/**
8164
* \brief Swap function.
8265
* \param other The other response object.

0 commit comments

Comments
 (0)