Make terminate_threads() less likely to leave _threads containing invalid pointers.
[dcpomatic.git] / src / lib / dcpomatic_socket.h
index fa5250a1ad184225f6994f0c6767dd072c28e9c5..870e7315c3126fb67b67fa3b493ce2be34ee8a56 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include <boost/asio.hpp>
+#include <boost/noncopyable.hpp>
 
 /** @class Socket
  *  @brief A class to wrap a boost::asio::ip::tcp::socket with some things
@@ -30,7 +31,7 @@
 class Socket : public boost::noncopyable
 {
 public:
-       Socket (int timeout = 30);
+       explicit Socket (int timeout = 30);
 
        /** @return Our underlying socket */
        boost::asio::ip::tcp::socket& socket () {