2 // Copyright Aleksey Gurtovoy 2000-2004
\r
4 // Distributed under the Boost Software License, Version 1.0.
\r
5 // (See accompanying file LICENSE_1_0.txt or copy at
\r
6 // http://www.boost.org/LICENSE_1_0.txt)
\r
8 // See http://www.boost.org/libs/mpl for documentation.
\r
10 // $Id: msvc_dtw.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
11 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
12 // $Revision: 49267 $
\r
14 // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION!
\r
16 #include <boost/mpl/aux_/preprocessor/params.hpp>
\r
18 // local macros, #undef-ined at the end of the header
\r
19 #define AUX778076_DTW_PARAMS(param) \
\r
20 BOOST_MPL_PP_PARAMS(AUX778076_MSVC_DTW_ARITY, param) \
\r
23 #define AUX778076_DTW_ORIGINAL_NAME \
\r
24 AUX778076_MSVC_DTW_ORIGINAL_NAME \
\r
27 // warning: not a well-formed C++
\r
28 // workaround for MSVC 6.5's "dependent template typedef bug"
\r
30 template< typename F>
\r
31 struct AUX778076_MSVC_DTW_NAME
\r
33 template< bool > struct f_ : F {};
\r
34 template<> struct f_<true>
\r
36 #if AUX778076_MSVC_DTW_ARITY > 0
\r
37 template< AUX778076_DTW_PARAMS(typename P) > struct AUX778076_DTW_ORIGINAL_NAME
\r
43 template< AUX778076_DTW_PARAMS(typename T) > struct result_
\r
44 : f_< aux::msvc_never_true<F>::value >
\r
45 ::template AUX778076_DTW_ORIGINAL_NAME< AUX778076_DTW_PARAMS(T) >
\r
49 template< typename P = int > struct AUX778076_DTW_ORIGINAL_NAME
\r
55 template< typename T = int > struct result_
\r
56 : f_< aux::msvc_never_true<F>::value >
\r
57 ::template AUX778076_DTW_ORIGINAL_NAME<>
\r
63 #undef AUX778076_DTW_ORIGINAL_NAME
\r
64 #undef AUX778076_DTW_PARAMS
\r
66 #undef AUX778076_MSVC_DTW_NAME
\r
67 #undef AUX778076_MSVC_DTW_ORIGINAL_NAME
\r
68 #undef AUX778076_MSVC_DTW_ARITY
\r