From c986fa4341426267896cc98182d02621d83ac22a Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Fri, 4 Feb 2005 22:08:38 +0000 Subject: [PATCH] fixes for VC6 [SVN r27124] --- include/boost/detail/is_incrementable.hpp | 35 ++++++++++++++++------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/include/boost/detail/is_incrementable.hpp b/include/boost/detail/is_incrementable.hpp index 110d16e..fdff245 100755 --- a/include/boost/detail/is_incrementable.hpp +++ b/include/boost/detail/is_incrementable.hpp @@ -4,7 +4,10 @@ #ifndef IS_INCREMENTABLE_DWA200415_HPP # define IS_INCREMENTABLE_DWA200415_HPP +# include +# include # include +# include # include # include @@ -51,7 +54,7 @@ namespace is_incrementable_ template struct impl { - static typename remove_cv::type& x; + static typename boost::remove_cv::type& x; BOOST_STATIC_CONSTANT( bool @@ -62,7 +65,7 @@ namespace is_incrementable_ template struct postfix_impl { - static typename remove_cv::type& x; + static typename boost::remove_cv::type& x; BOOST_STATIC_CONSTANT( bool @@ -73,18 +76,28 @@ namespace is_incrementable_ # undef BOOST_comma -template -struct is_incrementable - : mpl::bool_< ::boost::detail::is_incrementable_::impl::value> -{ +template +struct is_incrementable + BOOST_TT_AUX_BOOL_C_BASE(is_incrementable_::impl::value) +{ + BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(is_incrementable_::impl::value) + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_incrementable,(T)) }; -template -struct is_postfix_incrementable - : mpl::bool_< ::boost::detail::is_incrementable_::postfix_impl::value> -{ +template +struct is_postfix_incrementable + BOOST_TT_AUX_BOOL_C_BASE(is_incrementable_::impl::value) +{ + BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(is_incrementable_::postfix_impl::value) + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_postfix_incrementable,(T)) }; -}} // namespace boost::detail +} // namespace detail + +BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1, ::boost::detail::is_incrementable) +BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(1, ::boost::detail::is_postfix_incrementable) + +} // namespace boost + #endif // IS_INCREMENTABLE_DWA200415_HPP