tcpchannel should also be movable
This commit is contained in:
parent
9d23e44071
commit
757feb10c6
|
|
@ -24,7 +24,7 @@ private:
|
||||||
* The implementation for the channel
|
* The implementation for the channel
|
||||||
* @var std::unique_ptr<ChannelImpl>
|
* @var std::unique_ptr<ChannelImpl>
|
||||||
*/
|
*/
|
||||||
std::unique_ptr<ChannelImpl> _implementation;
|
std::shared_ptr<ChannelImpl> _implementation;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,18 @@ public:
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
virtual ~TcpChannel() {}
|
virtual ~TcpChannel() {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copying is not allowed.
|
||||||
|
* @param other
|
||||||
|
*/
|
||||||
|
TcpChannel(const TcpChannel &other) = delete;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* But movement is allowed
|
||||||
|
* @param other
|
||||||
|
*/
|
||||||
|
TcpChannel(TcpChannel &&other) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue