In most cases the use of std::unique_ptr already makes classes move-only
where necessary.
std::unique_ptr<Response> response;
std::string in_buf;
- Client(const Client &);
- Client &operator=(const Client &);
public:
~Client();
#define MSP_NET_COMMUNICATOR_H_
#include <msp/core/except.h>
+#include <msp/core/noncopyable.h>
#include <sigc++/signal.h>
#include "protocol.h"
};
-class Communicator
+class Communicator: public NonCopyable
{
public:
sigc::signal<void> signal_handshake_done;
protected:
SockAddr() = default;
+ SockAddr(const SockAddr &) = default;
+ SockAddr(SockAddr &&) = default;
+ SockAddr &operator=(const SockAddr &) = default;
+ SockAddr &operator=(SockAddr &&) = default;
public:
virtual ~SockAddr() = default;