File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
boost/network/protocol/http/message Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_BASE_HPP_20100603
2
+ #define BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_BASE_HPP_20100603
3
+
4
+ // Copyright 2010 (c) Dean Michael Berris
5
+ // Copyright 2010 (c) Sinefunc, Inc.
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+
10
+ #include < boost/network/tags.hpp>
11
+
12
+ #include < boost/mpl/if.hpp>
13
+ #include < boost/type_traits/is_base_of.hpp>
14
+
15
+ namespace boost { namespace network { namespace http {
16
+
17
+ namespace impl {
18
+ template <class Tag >
19
+ struct async_message_base {};
20
+ };
21
+
22
+ template <class Tag >
23
+ struct message_base
24
+ : mpl::if_<
25
+ is_base_of<
26
+ tags::async,
27
+ Tag
28
+ >,
29
+ impl::async_message_base<Tag>,
30
+ message_impl<Tag>
31
+ >
32
+ {};
33
+
34
+ } // namespace http
35
+
36
+ } // namespace network
37
+
38
+ } // namespace boost
39
+
40
+ #endif // BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_BASE_HPP_20100603
You can’t perform that action at this time.
0 commit comments