attribute_type.hpp 1.1 KB

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