Add missing const qualification to acceptor's get_option members.
This commit is contained in:
parent
66a1943c55
commit
7b2d186ced
@ -742,7 +742,7 @@ public:
|
|||||||
* @endcode
|
* @endcode
|
||||||
*/
|
*/
|
||||||
template <typename GettableSocketOption>
|
template <typename GettableSocketOption>
|
||||||
void get_option(GettableSocketOption& option)
|
void get_option(GettableSocketOption& option) const
|
||||||
{
|
{
|
||||||
asio::error_code ec;
|
asio::error_code ec;
|
||||||
this->get_service().get_option(this->get_implementation(), option, ec);
|
this->get_service().get_option(this->get_implementation(), option, ec);
|
||||||
@ -778,7 +778,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <typename GettableSocketOption>
|
template <typename GettableSocketOption>
|
||||||
ASIO_SYNC_OP_VOID get_option(GettableSocketOption& option,
|
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);
|
this->get_service().get_option(this->get_implementation(), option, ec);
|
||||||
ASIO_SYNC_OP_VOID_RETURN(ec);
|
ASIO_SYNC_OP_VOID_RETURN(ec);
|
||||||
|
Loading…
Reference in New Issue
Block a user