example_struct_type.hpp 734 B

123456789101112131415161718192021222324252627
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 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_EXAMPLE_STRUCT_TYPE)
  8. #define BOOST_FUSION_EXAMPLE_STRUCT_TYPE
  9. #include <string>
  10. namespace example
  11. {
  12. struct example_struct
  13. {
  14. std::string name;
  15. int age;
  16. example_struct(
  17. const std::string& n,
  18. int a)
  19. : name(n), age(a)
  20. {}
  21. };
  22. }
  23. #endif