diff options
Diffstat (limited to '3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp')
-rw-r--r-- | 3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp b/3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp index 8b543d2..bf7099a 100644 --- a/3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp +++ b/3rdParty/Boost/src/boost/asio/detail/win_iocp_serial_port_service.hpp @@ -36,7 +36,7 @@ class win_iocp_serial_port_service { public: // The native type of a serial port. - typedef win_iocp_handle_service::native_type native_type; + typedef win_iocp_handle_service::native_handle_type native_handle_type; // The implementation type of the serial port. typedef win_iocp_handle_service::implementation_type implementation_type; @@ -54,6 +54,22 @@ public: handle_service_.construct(impl); } + // Move-construct a new serial port implementation. + void move_construct(implementation_type& impl, + implementation_type& other_impl) + { + handle_service_.move_construct(impl, other_impl); + } + + // Move-assign from another serial port implementation. + void move_assign(implementation_type& impl, + win_iocp_serial_port_service& other_service, + implementation_type& other_impl) + { + handle_service_.move_assign(impl, + other_service.handle_service_, other_impl); + } + // Destroy a serial port implementation. void destroy(implementation_type& impl) { @@ -66,9 +82,9 @@ public: // Assign a native handle to a serial port implementation. boost::system::error_code assign(implementation_type& impl, - const native_type& native_handle, boost::system::error_code& ec) + const native_handle_type& handle, boost::system::error_code& ec) { - return handle_service_.assign(impl, native_handle, ec); + return handle_service_.assign(impl, handle, ec); } // Determine whether the serial port is open. @@ -85,9 +101,9 @@ public: } // Get the native serial port representation. - native_type native(implementation_type& impl) + native_handle_type native_handle(implementation_type& impl) { - return handle_service_.native(impl); + return handle_service_.native_handle(impl); } // Cancel all operations associated with the handle. |