annotate DEPENDENCIES/generic/include/boost/mpl/aux_/msvc_dtw.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1
Chris@16 2 // Copyright Aleksey Gurtovoy 2000-2004
Chris@16 3 //
Chris@16 4 // Distributed under the Boost Software License, Version 1.0.
Chris@16 5 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 //
Chris@16 8 // See http://www.boost.org/libs/mpl for documentation.
Chris@16 9
Chris@101 10 // $Id$
Chris@101 11 // $Date$
Chris@101 12 // $Revision$
Chris@16 13
Chris@16 14 // NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION!
Chris@16 15
Chris@16 16 #include <boost/mpl/aux_/preprocessor/params.hpp>
Chris@16 17
Chris@16 18 // local macros, #undef-ined at the end of the header
Chris@16 19 #define AUX778076_DTW_PARAMS(param) \
Chris@16 20 BOOST_MPL_PP_PARAMS(AUX778076_MSVC_DTW_ARITY, param) \
Chris@16 21 /**/
Chris@16 22
Chris@16 23 #define AUX778076_DTW_ORIGINAL_NAME \
Chris@16 24 AUX778076_MSVC_DTW_ORIGINAL_NAME \
Chris@16 25 /**/
Chris@16 26
Chris@16 27 // warning: not a well-formed C++
Chris@16 28 // workaround for MSVC 6.5's "dependent template typedef bug"
Chris@16 29
Chris@16 30 template< typename F>
Chris@16 31 struct AUX778076_MSVC_DTW_NAME
Chris@16 32 {
Chris@16 33 template< bool > struct f_ : F {};
Chris@16 34 template<> struct f_<true>
Chris@16 35 {
Chris@16 36 #if AUX778076_MSVC_DTW_ARITY > 0
Chris@16 37 template< AUX778076_DTW_PARAMS(typename P) > struct AUX778076_DTW_ORIGINAL_NAME
Chris@16 38 {
Chris@16 39 typedef int type;
Chris@16 40 };
Chris@16 41 };
Chris@16 42
Chris@16 43 template< AUX778076_DTW_PARAMS(typename T) > struct result_
Chris@16 44 : f_< aux::msvc_never_true<F>::value >
Chris@16 45 ::template AUX778076_DTW_ORIGINAL_NAME< AUX778076_DTW_PARAMS(T) >
Chris@16 46 {
Chris@16 47 };
Chris@16 48 #else
Chris@16 49 template< typename P = int > struct AUX778076_DTW_ORIGINAL_NAME
Chris@16 50 {
Chris@16 51 typedef int type;
Chris@16 52 };
Chris@16 53 };
Chris@16 54
Chris@16 55 template< typename T = int > struct result_
Chris@16 56 : f_< aux::msvc_never_true<F>::value >
Chris@16 57 ::template AUX778076_DTW_ORIGINAL_NAME<>
Chris@16 58 {
Chris@16 59 };
Chris@16 60 #endif
Chris@16 61 };
Chris@16 62
Chris@16 63 #undef AUX778076_DTW_ORIGINAL_NAME
Chris@16 64 #undef AUX778076_DTW_PARAMS
Chris@16 65
Chris@16 66 #undef AUX778076_MSVC_DTW_NAME
Chris@16 67 #undef AUX778076_MSVC_DTW_ORIGINAL_NAME
Chris@16 68 #undef AUX778076_MSVC_DTW_ARITY