From 8a8d83fb2d997c6c26d5fdfe4eb086856fcd4430 Mon Sep 17 00:00:00 2001 From: "chris.kohlhoff" Date: Tue, 9 Jul 2019 19:42:35 +1000 Subject: [PATCH] Serial port get_option() should be const. --- include/boost/asio/basic_serial_port.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/asio/basic_serial_port.hpp b/include/boost/asio/basic_serial_port.hpp index 88a195a4..55144ee5 100644 --- a/include/boost/asio/basic_serial_port.hpp +++ b/include/boost/asio/basic_serial_port.hpp @@ -554,7 +554,7 @@ public: * boost::asio::serial_port_base::character_size */ template - void get_option(GettableSerialPortOption& option) + void get_option(GettableSerialPortOption& option) const { boost::system::error_code ec; impl_.get_service().get_option(impl_.get_implementation(), option, ec); @@ -579,7 +579,7 @@ public: */ template BOOST_ASIO_SYNC_OP_VOID get_option(GettableSerialPortOption& option, - boost::system::error_code& ec) + boost::system::error_code& ec) const { impl_.get_service().get_option(impl_.get_implementation(), option, ec); BOOST_ASIO_SYNC_OP_VOID_RETURN(ec);