mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 13:27:33 +02:00
Remove redundant template in service_base
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
@ -3,6 +3,7 @@ Version 256:
|
|||||||
* Remove uses of the deprecated `buffers` function
|
* Remove uses of the deprecated `buffers` function
|
||||||
* Remove uses of deprecated methods in websocket tests
|
* Remove uses of deprecated methods in websocket tests
|
||||||
* Remove redundant use of `static_string`
|
* Remove redundant use of `static_string`
|
||||||
|
* Remove redundant template in service_base
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -16,15 +16,10 @@ namespace boost {
|
|||||||
namespace beast {
|
namespace beast {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template<class T>
|
|
||||||
struct service_id : net::execution_context::id
|
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
struct service_base : net::execution_context::service
|
struct service_base : net::execution_context::service
|
||||||
{
|
{
|
||||||
static service_id<T> id;
|
static net::execution_context::id const id;
|
||||||
|
|
||||||
explicit
|
explicit
|
||||||
service_base(net::execution_context& ctx)
|
service_base(net::execution_context& ctx)
|
||||||
@ -34,7 +29,7 @@ struct service_base : net::execution_context::service
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
service_id<T> service_base<T>::id;
|
net::execution_context::id const service_base<T>::id;
|
||||||
|
|
||||||
} // detail
|
} // detail
|
||||||
} // beast
|
} // beast
|
||||||
|
Reference in New Issue
Block a user