member get_executor const-correctness

fix #1559
This commit is contained in:
Vinnie Falco
2019-04-18 18:31:39 -07:00
parent db118f4dc4
commit 0a334d96d1
5 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
Version 253:
* Fix async_detect_ssl handler type
* member get_executor const-correctness
--------------------------------------------------------------------------------

View File

@ -498,7 +498,7 @@ public:
@return A copy of the executor that stream will use to dispatch handlers.
*/
executor_type
get_executor() const noexcept
get_executor() noexcept
{
return impl_->ex();
}

View File

@ -63,7 +63,7 @@ stream(Args&&... args)
template<class NextLayer, bool deflateSupported>
auto
stream<NextLayer, deflateSupported>::
get_executor() const noexcept ->
get_executor() noexcept ->
executor_type
{
return impl_->stream().get_executor();

View File

@ -220,7 +220,7 @@ public:
@return A copy of the executor that stream will use to dispatch handlers.
*/
executor_type
get_executor() const noexcept;
get_executor() noexcept;
/** Get a reference to the next layer

View File

@ -213,14 +213,14 @@ public:
struct async_read_stream
{
net::io_context::executor_type get_executor();
net::io_context::executor_type get_executor() noexcept;
template<class MutableBufferSequence, class ReadHandler>
void async_read_some(MutableBufferSequence const&, ReadHandler&&);
};
struct async_write_stream
{
net::io_context::executor_type get_executor();
net::io_context::executor_type get_executor() noexcept;
template<class ConstBufferSequence, class WriteHandler>
void async_write_some(ConstBufferSequence const&, WriteHandler&&);
};
@ -231,7 +231,7 @@ public:
struct async_stream : async_read_stream, async_write_stream
{
net::io_context::executor_type get_executor();
net::io_context::executor_type get_executor() noexcept;
template<class MutableBufferSequence, class ReadHandler>
void async_read_some(MutableBufferSequence const&, ReadHandler&&);
template<class ConstBufferSequence, class WriteHandler>