Remove redundant template in service_base

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek
2019-05-19 19:19:10 +02:00
parent 0f77bd7149
commit e98fc22bec
2 changed files with 3 additions and 7 deletions

View File

@ -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
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -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