Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/adapted/struct/adapt_struct_named.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 /*============================================================================= | |
2 Copyright (c) 2001-2007 Joel de Guzman | |
3 Copyright (c) 2009-2010 Hartmut Kaiser | |
4 Copyright (c) 2010-2011 Christopher Schmidt | |
5 | |
6 Distributed under the Boost Software License, Version 1.0. (See accompanying | |
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
8 ==============================================================================*/ | |
9 | |
10 #ifndef BOOST_FUSION_ADAPTED_STRUCT_ADAPT_STRUCT_NAMED_HPP | |
11 #define BOOST_FUSION_ADAPTED_STRUCT_ADAPT_STRUCT_NAMED_HPP | |
12 | |
13 #include <boost/fusion/adapted/struct/adapt_struct.hpp> | |
14 #include <boost/fusion/adapted/struct/detail/proxy_type.hpp> | |
15 #include <boost/preprocessor/empty.hpp> | |
16 | |
17 #define BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_0(X, Y) \ | |
18 (X, obj.Y) BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_1 | |
19 #define BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_1(X, Y) \ | |
20 (X, obj.Y) BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_0 | |
21 #define BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_0_END | |
22 #define BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_1_END | |
23 | |
24 #define BOOST_FUSION_ADAPT_STRUCT_NAMED_NS( \ | |
25 WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \ | |
26 \ | |
27 BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \ | |
28 WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \ | |
29 \ | |
30 BOOST_FUSION_ADAPT_STRUCT_AS_VIEW( \ | |
31 BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \ | |
32 BOOST_PP_CAT( \ | |
33 BOOST_FUSION_ADAPT_STRUCT_NAMED_FILLER_0 ATTRIBUTES,_END)) | |
34 | |
35 #define BOOST_FUSION_ADAPT_STRUCT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \ | |
36 BOOST_FUSION_ADAPT_STRUCT_NAMED_NS( \ | |
37 WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES) | |
38 | |
39 #endif |