Chris@16: //----------------------------------------------------------------------------- Chris@16: // boost variant/detail/substitute_fwd.hpp header file Chris@16: // See http://www.boost.org for updates, documentation, and revision history. Chris@16: //----------------------------------------------------------------------------- Chris@16: // Chris@16: // Copyright (c) 2003 Chris@16: // Eric Friedman Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP Chris@16: #define BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP Chris@16: Chris@16: #include "boost/mpl/aux_/lambda_arity_param.hpp" Chris@16: #include "boost/mpl/aux_/template_arity.hpp" Chris@16: #include "boost/mpl/int_fwd.hpp" Chris@16: Chris@16: Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // BOOST_VARIANT_DETAIL_NO_SUBSTITUTE Chris@16: // Chris@16: // Defined if 'substitute' is not implementable on the current compiler. Chris@16: // Chris@16: Chris@16: #include "boost/mpl/aux_/config/ctps.hpp" Chris@16: #include "boost/mpl/aux_/config/ttp.hpp" Chris@16: Chris@16: #if defined(BOOST_NO_TEMPLATE_TEMPLATE_PARAMETERS) \ Chris@16: && !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) Chris@16: # define BOOST_VARIANT_DETAIL_NO_SUBSTITUTE Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace detail { namespace variant { Chris@16: Chris@16: #if !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) Chris@16: Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // metafunction substitute Chris@16: // Chris@16: // Substitutes one type for another in the given type expression. Chris@16: // Chris@16: template < Chris@16: typename T, typename Dest, typename Source Chris@16: BOOST_MPL_AUX_LAMBDA_ARITY_PARAM( Chris@16: typename Arity = mpl::int_< mpl::aux::template_arity::value > Chris@16: ) Chris@16: > Chris@16: struct substitute; Chris@16: Chris@16: #endif // !defined(BOOST_VARIANT_DETAIL_NO_SUBSTITUTE) Chris@16: Chris@16: }} // namespace detail::variant Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_VARIANT_DETAIL_SUBSTITUTE_FWD_HPP