Skip to content

Commit 49c4145

Browse files
committed
Using tag inheritance to simplify metaprogramming.
1 parent b44fffd commit 49c4145

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

boost/network/tags.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
namespace boost { namespace network { namespace tags {
1212

1313
struct async {};
14+
struct http {};
15+
struct tcp {};
16+
struct udp {};
1417

1518
struct default_string {};
1619
struct default_wstring {};
17-
struct http_default_8bit_tcp_resolve {};
18-
struct http_default_8bit_udp_resolve {};
19-
struct http_keepalive_8bit_tcp_resolve {};
20-
struct http_keepalive_8bit_udp_resolve {};
21-
struct http_server {};
22-
struct http_async_8bit_udp_resolve : async {};
20+
struct http_default_8bit_tcp_resolve : http,tcp {};
21+
struct http_default_8bit_udp_resolve : http,udp {};
22+
struct http_keepalive_8bit_tcp_resolve : http,tcp {};
23+
struct http_keepalive_8bit_udp_resolve : http,udp {};
24+
struct http_server : http {};
25+
struct http_async_8bit_udp_resolve : http,async,udp {};
2326

2427
typedef default_string default_;
2528

0 commit comments

Comments
 (0)