]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/beast/core/detail/service_base.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / beast / core / detail / service_base.hpp
1 //
2 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9
10 #ifndef BOOST_BEAST_DETAIL_SERVICE_BASE_HPP
11 #define BOOST_BEAST_DETAIL_SERVICE_BASE_HPP
12
13 #include <boost/asio/execution_context.hpp>
14
15 namespace boost {
16 namespace beast {
17 namespace detail {
18
19 template<class T>
20 struct service_base : net::execution_context::service
21 {
22 static net::execution_context::id const id;
23
24 explicit
25 service_base(net::execution_context& ctx)
26 : net::execution_context::service(ctx)
27 {
28 }
29 };
30
31 template<class T>
32 net::execution_context::id const service_base<T>::id;
33
34 } // detail
35 } // beast
36 } // boost
37
38 #endif