aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/utils
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/low-can-binding/utils')
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.cpp6
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.hpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp
index d66822de..ffd46151 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.cpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.cpp
@@ -43,6 +43,12 @@ namespace utils
s.socket_ = INVALID_SOCKET;
}
+ socketcan_t& socketcan_t::operator=(const socketcan_t& s)
+ {
+ socket_ = std::move(s.socket_);
+ return *this;
+ }
+
socketcan_t::~socketcan_t()
{}
diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp
index c3abb2ff..1e7cd3cb 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.hpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.hpp
@@ -35,6 +35,7 @@ namespace utils
socketcan_t();
socketcan_t(const socketcan_t& s);
socketcan_t(socketcan_t&&);
+ socketcan_t& operator=(const socketcan_t& s);
virtual ~socketcan_t();
const struct sockaddr_can& get_tx_address() const;