mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +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 deprecated methods in websocket tests
|
||||
* Remove redundant use of `static_string`
|
||||
* Remove redundant template in service_base
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -16,15 +16,10 @@ namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
template<class T>
|
||||
struct service_id : net::execution_context::id
|
||||
{
|
||||
};
|
||||
|
||||
template<class T>
|
||||
struct service_base : net::execution_context::service
|
||||
{
|
||||
static service_id<T> id;
|
||||
static net::execution_context::id const id;
|
||||
|
||||
explicit
|
||||
service_base(net::execution_context& ctx)
|
||||
@ -34,7 +29,7 @@ struct service_base : net::execution_context::service
|
||||
};
|
||||
|
||||
template<class T>
|
||||
service_id<T> service_base<T>::id;
|
||||
net::execution_context::id const service_base<T>::id;
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
|
Reference in New Issue
Block a user