adapt_assoc_adt_named.hpp 1.5 KB

1234567891011121314151617181920212223242526272829
  1. /*=============================================================================
  2. Copyright (c) 2010 Christopher Schmidt
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_NAMED_HPP
  7. #define BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_NAMED_HPP
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
  10. #include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
  11. #define BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED_NS( \
  12. WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
  13. \
  14. BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
  15. WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
  16. \
  17. BOOST_FUSION_ADAPT_ASSOC_ADT_AS_VIEW( \
  18. BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
  19. ATTRIBUTES)
  20. #define BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
  21. BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED_NS( \
  22. WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
  23. #endif