diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 08:31:23 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 08:31:23 +0200 |
| commit | b249700e1da7dd6631a8b4440587f4093a2bdef1 (patch) | |
| tree | 71f88855e72b11f927d194f0676bac93845d26be /src/lib/dcpomatic_socket.h | |
| parent | 94695fc3214917ad7310af36270ce1e0b88cdfa3 (diff) | |
Remove use of boost::noncopyable.
Diffstat (limited to 'src/lib/dcpomatic_socket.h')
| -rw-r--r-- | src/lib/dcpomatic_socket.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dcpomatic_socket.h b/src/lib/dcpomatic_socket.h index 49a278588..f4520e5cf 100644 --- a/src/lib/dcpomatic_socket.h +++ b/src/lib/dcpomatic_socket.h @@ -20,7 +20,6 @@ #include "digester.h" #include <boost/asio.hpp> -#include <boost/noncopyable.hpp> #include <boost/scoped_ptr.hpp> /** @class Socket @@ -30,11 +29,14 @@ * This class wraps some things that I could not work out how to do easily with boost; * most notably, sync read/write calls with timeouts. */ -class Socket : public boost::noncopyable +class Socket { public: explicit Socket (int timeout = 30); + Socket (Socket const&) = delete; + Socket& operator= (Socket const&) = delete; + /** @return Our underlying socket */ boost::asio::ip::tcp::socket& socket () { return _socket; @@ -79,8 +81,6 @@ private: void start_write_digest (); void finish_write_digest (); - Socket (Socket const &); - boost::asio::io_service _io_service; boost::asio::deadline_timer _deadline; boost::asio::ip::tcp::socket _socket; |
