@@ -33,11 +33,6 @@ POSSIBILITY OF SUCH DAMAGE.
33
33
#ifndef TORRENT_HTTP_CONNECTION
34
34
#define TORRENT_HTTP_CONNECTION
35
35
36
- #include " libtorrent/aux_/disable_warnings_push.hpp"
37
-
38
- #include < boost/noncopyable.hpp>
39
- #include < boost/optional.hpp>
40
-
41
36
#ifdef TORRENT_USE_OPENSSL
42
37
// there is no forward declaration header for asio
43
38
namespace boost {
@@ -49,8 +44,6 @@ namespace ssl {
49
44
}
50
45
#endif
51
46
52
- #include " libtorrent/aux_/disable_warnings_pop.hpp"
53
-
54
47
#include < functional>
55
48
#include < vector>
56
49
#include < string>
@@ -64,6 +57,7 @@ namespace ssl {
64
57
#include " libtorrent/i2p_stream.hpp"
65
58
#include " libtorrent/aux_/vector.hpp"
66
59
#include " libtorrent/resolver_interface.hpp"
60
+ #include " libtorrent/optional.hpp"
67
61
68
62
namespace libtorrent {
69
63
@@ -83,7 +77,6 @@ typedef std::function<void(http_connection&, std::vector<tcp::endpoint>&)> http_
83
77
// will always be 0
84
78
struct TORRENT_EXTRA_EXPORT http_connection
85
79
: std::enable_shared_from_this<http_connection>
86
- , boost::noncopyable
87
80
{
88
81
http_connection (io_service& ios
89
82
, resolver_interface& resolver
@@ -97,6 +90,10 @@ struct TORRENT_EXTRA_EXPORT http_connection
97
90
#endif
98
91
);
99
92
93
+ // non-copyable
94
+ http_connection (http_connection const &) = delete ;
95
+ http_connection& operator =(http_connection const &) = delete ;
96
+
100
97
virtual ~http_connection ();
101
98
102
99
void rate_limit (int limit);
@@ -195,7 +192,7 @@ struct TORRENT_EXTRA_EXPORT http_connection
195
192
// configured to use a proxy
196
193
aux::proxy_settings m_proxy;
197
194
198
- // the address to bind to
195
+ // the address to bind to. unset means do not bind
199
196
boost::optional<address> m_bind_addr;
200
197
201
198
// if username password was passed in, remember it in case we need to
0 commit comments