1 /*============================================================================= 2 Copyright (c) 2010-2011 Christopher Schmidt 3 4 Distributed under the Boost Software License, Version 1.0. (See accompanying 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 ==============================================================================*/ 7 8 #ifndef BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP 9 #define BOOST_FUSION_ADAPTED_STRUCT_ADAPT_ASSOC_STRUCT_NAMED_HPP 10 11 #include <boost/fusion/support/config.hpp> 12 #include <boost/fusion/adapted/struct/adapt_assoc_struct.hpp> 13 #include <boost/fusion/adapted/struct/detail/proxy_type.hpp> 14 15 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_NS( \ 16 WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \ 17 \ 18 BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \ 19 WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \ 20 \ 21 BOOST_FUSION_ADAPT_ASSOC_STRUCT_AS_VIEW( \ 22 BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \ 23 ATTRIBUTES) 24 25 #define BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \ 26 BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED_NS( \ 27 WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES) 28 29 #endif 30