Add missing const qualification to acceptor's get_option members.

This commit is contained in:
Christopher Kohlhoff 2018-03-04 21:29:46 +11:00
parent 66a1943c55
commit 7b2d186ced

View File

@ -742,7 +742,7 @@ public:
* @endcode
*/
template <typename GettableSocketOption>
void get_option(GettableSocketOption& option)
void get_option(GettableSocketOption& option) const
{
asio::error_code ec;
this->get_service().get_option(this->get_implementation(), option, ec);
@ -778,7 +778,7 @@ public:
*/
template <typename GettableSocketOption>
ASIO_SYNC_OP_VOID get_option(GettableSocketOption& option,
asio::error_code& ec)
asio::error_code& ec) const
{
this->get_service().get_option(this->get_implementation(), option, ec);
ASIO_SYNC_OP_VOID_RETURN(ec);