ast_adapted.hpp 757 B

123456789101112131415161718192021
  1. /*=============================================================================
  2. Copyright (c) 2002-2018 Joel de Guzman
  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. #if !defined(BOOST_SPIRIT_X3_MINIMAL_AST_ADAPTED_HPP)
  7. #define BOOST_SPIRIT_X3_MINIMAL_AST_ADAPTED_HPP
  8. #include <boost/fusion/include/adapt_struct.hpp>
  9. #include "ast.hpp"
  10. // We need to tell fusion about our employee struct
  11. // to make it a first-class fusion citizen. This has to
  12. // be in global scope.
  13. BOOST_FUSION_ADAPT_STRUCT(client::ast::employee,
  14. age, forename, surname, salary
  15. )
  16. #endif