Skip to content

Commit e462ae1

Browse files
committed
Adding a selector for pod-like or normal tags for messages.
1 parent e1cee56 commit e462ae1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_SUPPORT_POD_OR_NORMAL_HPP_20101128
2+
#define BOOST_NETWORK_PROTOCOL_HTTP_SUPPORT_POD_OR_NORMAL_HPP_20101128
3+
4+
// Copyright 2010 Dean Michael Berris.
5+
// Distributed under the Boost Software License, Version 1.0.
6+
// (See accompanying file LICENSE_1_0.txt or copy at
7+
// http://www.boost.org/LICENSE_1_0.txt)
8+
9+
#include <boost/network/protocol/http/tags.hpp>
10+
#include <boost/network/support/is_pod.hpp>
11+
#include <boost/mpl/if.hpp>
12+
13+
namespace boost { namespace network {
14+
15+
template <class Tag>
16+
struct pod_or_normal :
17+
mpl::if_<
18+
is_pod<Tag>
19+
, tags::pod
20+
, tags::normal
21+
>
22+
{};
23+
24+
} /* network */
25+
26+
} /* boost */
27+
28+
#endif /* BOOST_NETWORK_PROTOCOL_HTTP_SUPPORT_POD_OR_NORMAL_HPP_20101128 */

0 commit comments

Comments
 (0)