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