Repository navigation
Expand file tree
/
Copy pathstring.hpp
More file actions
64 lines (47 loc) · 1.42 KB
/
Copy pathstring.hpp
File metadata and controls
64 lines (47 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) Dean Michael Berris 2008, 2009.
// Glyn Matthews 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_NETWORK_TRAITS_STRING_INC
#define BOOST_NETWORK_TRAITS_STRING_INC
# include <string>
# include <boost/network/tags.hpp>
namespace boost { namespace network {
template <class Tag>
struct unsupported_tag;
template <class Tag>
struct string {
typedef unsupported_tag<Tag> type;
};
template <>
struct string<tags::default_string> {
typedef std::string type;
};
template <>
struct string<tags::default_wstring> {
typedef std::wstring type;
};
template <>
struct string<tags::http_server> {
typedef std::string type;
};
template <>
struct string<tags::http_default_8bit_tcp_resolve> {
typedef std::string type;
};
template <>
struct string<tags::http_default_8bit_udp_resolve> {
typedef std::string type;
};
template <>
struct string<tags::http_keepalive_8bit_tcp_resolve> {
typedef std::string type;
};
template <>
struct string<tags::http_keepalive_8bit_udp_resolve> {
typedef std::string type;
};
} // namespace network
} // namespace boost
#endif // BOOST_NETWORK_TRAITS_STRING_INC