tag_of.hpp 835 B

123456789101112131415161718192021222324252627282930
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2005-2006 Dan Marsden
  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. #if !defined(BOOST_FUSION_TAG_OF_20060222_2052)
  8. #define BOOST_FUSION_TAG_OF_20060222_2052
  9. #include <boost/fusion/support/tag_of_fwd.hpp>
  10. #include "./example_struct_type.hpp"
  11. namespace example
  12. {
  13. struct example_sequence_tag;
  14. }
  15. namespace boost { namespace fusion {
  16. namespace traits {
  17. template<>
  18. struct tag_of<example::example_struct>
  19. {
  20. typedef example::example_sequence_tag type;
  21. };
  22. }}}
  23. #endif