diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-31 12:31:11 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-01 18:22:49 +0200 |
commit | 016b3b0d2764bccf881558d712decc6e9fe1fadd (patch) | |
tree | 9d144aa6e77bfc2d015acde3e84bc2bd777549bb /CAN-binder/low-can-binding/utils | |
parent | eafde4cec4fc026444501ed3a096a12e6eb8fc90 (diff) |
Remake socketcan only movable
Change-Id: If81e2a18c0beec392a98f8b835c7a5d154360500
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/utils')
-rw-r--r-- | CAN-binder/low-can-binding/utils/socketcan.cpp | 9 | ||||
-rw-r--r-- | CAN-binder/low-can-binding/utils/socketcan.hpp | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp index ffd4615..1f7aaa6 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.cpp +++ b/CAN-binder/low-can-binding/utils/socketcan.cpp @@ -31,17 +31,10 @@ namespace utils : 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) { diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp index 1e7cd3c..8300e6b 100644 --- a/CAN-binder/low-can-binding/utils/socketcan.hpp +++ b/CAN-binder/low-can-binding/utils/socketcan.hpp @@ -33,7 +33,7 @@ namespace utils { 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(); |