adapt_adt_named.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. /*=============================================================================
  2. Copyright (c) 2001-2009 Joel de Guzman
  3. Copyright (c) 2009-2010 Hartmut Kaiser
  4. Copyright (c) 2010 Christopher Schmidt
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_NAMED_HPP
  9. #define BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_NAMED_HPP
  10. #include <boost/fusion/support/config.hpp>
  11. #include <boost/fusion/adapted/adt/adapt_adt.hpp>
  12. #include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
  13. #define BOOST_FUSION_ADAPT_ADT_NAMED_NS( \
  14. WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
  15. \
  16. BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
  17. WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
  18. \
  19. BOOST_FUSION_ADAPT_ADT_AS_VIEW( \
  20. BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
  21. ATTRIBUTES)
  22. #define BOOST_FUSION_ADAPT_ADT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
  23. BOOST_FUSION_ADAPT_ADT_NAMED_NS( \
  24. WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
  25. #endif