@@ -76,13 +76,14 @@ namespace network {
76
76
* \brief Swap.
77
77
*/
78
78
void swap (client_options &other) noexcept {
79
+ using std::swap;
79
80
std::swap (io_service_, other.io_service_ );
80
- std:: swap (follow_redirects_, other.follow_redirects_ );
81
- std:: swap (cache_resolved_, other.cache_resolved_ );
82
- std:: swap (use_proxy_, other.use_proxy_ );
83
- std:: swap (timeout_, other.timeout_ );
84
- std:: swap (openssl_certificate_paths_, other.openssl_certificate_paths_ );
85
- std:: swap (openssl_verify_paths_, other.openssl_verify_paths_ );
81
+ swap (follow_redirects_, other.follow_redirects_ );
82
+ swap (cache_resolved_, other.cache_resolved_ );
83
+ swap (use_proxy_, other.use_proxy_ );
84
+ swap (timeout_, other.timeout_ );
85
+ swap (openssl_certificate_paths_, other.openssl_certificate_paths_ );
86
+ swap (openssl_verify_paths_, other.openssl_verify_paths_ );
86
87
}
87
88
88
89
/* *
@@ -225,6 +226,11 @@ namespace network {
225
226
226
227
};
227
228
229
+ inline
230
+ void swap (client_options &lhs, client_options &rhs) noexcept {
231
+ lhs.swap (rhs);
232
+ }
233
+
228
234
template <typename Handler, typename Signature>
229
235
struct handler_type { };
230
236
0 commit comments