[pkg-boost-commits] r13873 - boost/trunk/debian
Christophe Prudhomme
prudhomm at costa.debian.org
Wed Oct 26 18:57:43 UTC 2005
Author: prudhomm
Date: 2005-10-26 18:57:42 +0000 (Wed, 26 Oct 2005)
New Revision: 13873
Added:
boost/trunk/debian/02-is_incrementable1331.patch
Log:
patch to fix is_incrementable with g++ 4.0.2
applied to tree
Added: boost/trunk/debian/02-is_incrementable1331.patch
===================================================================
--- boost/trunk/debian/02-is_incrementable1331.patch 2005-10-26 18:55:01 UTC (rev 13872)
+++ boost/trunk/debian/02-is_incrementable1331.patch 2005-10-26 18:57:42 UTC (rev 13873)
@@ -0,0 +1,47 @@
+--- boost/detail/is_incrementable.hpp 2005-10-25 20:21:17.838129392 +0200
++++ /home/prudhomm/Devel/C++/Boost/boost-1.33/boost/detail/is_incrementable.hpp 2005-10-17 09:48:11.000000000 +0200
+@@ -32,8 +32,26 @@
+ struct any { template <class T> any(T const&); };
+
+ // This is a last-resort operator++ for when none other is found
++# if BOOST_WORKAROUND(__GNUC__, == 4) && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 2
++
++}
++
++namespace is_incrementable_2
++{
++ is_incrementable_::tag operator++(is_incrementable_::any const&);
++ is_incrementable_::tag operator++(is_incrementable_::any const&,int);
++}
++using namespace is_incrementable_2;
++
++namespace is_incrementable_
++{
++
++# else
++
+ tag operator++(any const&);
+ tag operator++(any const&,int);
++
++# endif
+
+ # if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3202)) \
+ || BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
+@@ -78,7 +96,7 @@
+
+ template<typename T>
+ struct is_incrementable
+- BOOST_TT_AUX_BOOL_C_BASE(::boost::detail::is_incrementable_::impl<T>::value)
++BOOST_TT_AUX_BOOL_C_BASE(::boost::detail::is_incrementable_::impl<T>::value)
+ {
+ BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(::boost::detail::is_incrementable_::impl<T>::value)
+ BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_incrementable,(T))
+@@ -86,7 +104,7 @@
+
+ template<typename T>
+ struct is_postfix_incrementable
+- BOOST_TT_AUX_BOOL_C_BASE(::boost::detail::is_incrementable_::impl<T>::value)
++BOOST_TT_AUX_BOOL_C_BASE(::boost::detail::is_incrementable_::impl<T>::value)
+ {
+ BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(::boost::detail::is_incrementable_::postfix_impl<T>::value)
+ BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_postfix_incrementable,(T))
More information about the pkg-boost-commits
mailing list