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

Commitdd69300

Browse files
committed
Remove user-declared constructors for response class
Removed the following defaulted constructors:* Default Constructor* Copy Constructor* Move ConstructorThe defaulted move constructor prevents implicit declaration ofthe copy assignment operator, which results in compiler errorssince std::promise requires it.All 3 user-declared methods removed here are implicitly declared bythe compiler anyway, so no need to default them in the first place.Relates to#547
1 parent769e5c6 commitdd69300

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

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

Lines changed: 0 additions & 17 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp