Change-Id: If81e2a18c0beec392a98f8b835c7a5d154360500
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
: socket_{INVALID_SOCKET}
{}
- /// @brief Construct a socket by copying an existing one.
- socketcan_t::socketcan_t(const socketcan_t& s)
- : socket_{s.socket_}
- {}
-
/// @brief Construct a socket by moving an existing one.
socketcan_t::socketcan_t(socketcan_t&& s)
: socket_{s.socket_}
- {
- s.socket_ = INVALID_SOCKET;
- }
+ {}
socketcan_t& socketcan_t::operator=(const socketcan_t& s)
{
{
public:
socketcan_t();
- socketcan_t(const socketcan_t& s);
+ socketcan_t(const socketcan_t& s) = delete;
socketcan_t(socketcan_t&&);
socketcan_t& operator=(const socketcan_t& s);
virtual ~socketcan_t();