1 //-----------------------------------------------------------------------------
2 // boost variant/detail/substitute_fwd.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
9 // Distributed under the Boost Software License, Version 1.0. (See
10 // accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #ifndef BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
14 #define BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP
16 #include <boost/mpl/aux_/lambda_arity_param.hpp>
17 #include <boost/mpl/aux_/template_arity.hpp>
18 #include <boost/mpl/int_fwd.hpp>
21 ///////////////////////////////////////////////////////////////////////////////
22 // BOOST_VARIANT_DETAIL_NO_SUBSTITUTE
24 // Defined if 'substitute' is not implementable on the current compiler.
27 #include <boost/mpl/aux_/config/ctps.hpp>
28 #include <boost/mpl/aux_/config/ttp.hpp>
30 #if defined(BOOST_NO_TEMPLATE_TEMPLATE_PARAMETERS) \
31 && !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
32 # define BOOST_VARIANT_DETAIL_NO_SUBSTITUTE
36 namespace detail { namespace variant {
38 #if !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
40 ///////////////////////////////////////////////////////////////////////////////
41 // metafunction substitute
43 // Substitutes one type for another in the given type expression.
46 typename T, typename Dest, typename Source
47 BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(
48 typename Arity = mpl::int_< mpl::aux::template_arity<T>::value >
53 #endif // !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE)
55 }} // namespace detail::variant
58 #endif // BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP