1 /*=============================================================================
2 Copyright (c) 2001-2014 Joel de Guzman
3 Copyright (c) 2001-2012 Hartmut Kaiser
4 http://spirit.sourceforge.net/
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
9 #if !defined(BOOST_SPIRIT_X3_ATTRIBUTE_TRANSFORM_JAN_8_2012_0721PM)
10 #define BOOST_SPIRIT_X3_ATTRIBUTE_TRANSFORM_JAN_8_2012_0721PM
12 #include <boost/mpl/identity.hpp>
14 namespace boost { namespace spirit { namespace x3 { namespace traits
16 ///////////////////////////////////////////////////////////////////////////
17 // transform_attribute
19 // Sometimes the user needs to transform the attribute types for certain
20 // attributes. This template can be used as a customization point, where
21 // the user is able specify specific transformation rules for any attribute
23 ///////////////////////////////////////////////////////////////////////////
24 template <typename Exposed, typename Transformed, typename Tag
25 , typename Enable = void>
26 struct transform_attribute;