| 1 | /*============================================================================= |
| 2 | Copyright (c) 2001-2014 Joel de Guzman |
| 3 | http://spirit.sourceforge.net/ |
| 4 | |
| 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 | #if !defined(BOOST_SPIRIT_X3_ATTRIBUTE_TYPE_JAN_5_2012_0358PM) |
| 9 | #define BOOST_SPIRIT_X3_ATTRIBUTE_TYPE_JAN_5_2012_0358PM |
| 10 | |
| 11 | #include <boost/mpl/identity.hpp> |
| 12 | |
| 13 | namespace boost { namespace spirit { namespace x3 { namespace traits |
| 14 | { |
| 15 | /////////////////////////////////////////////////////////////////////////// |
| 16 | // Retrieve the attribute type to use from the given type |
| 17 | // |
| 18 | // This is needed to extract the correct attribute type from proxy classes |
| 19 | // as utilized in FUSION_ADAPT_ADT et. al. |
| 20 | /////////////////////////////////////////////////////////////////////////// |
| 21 | template <typename Attribute, typename Enable = void> |
| 22 | struct attribute_type : mpl::identity<Attribute> {}; |
| 23 | |
| 24 | }}}} |
| 25 | |
| 26 | #endif |
| 27 | |