Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73699 - trunk/boost/fusion/algorithm/transformation
From: joel_at_[hidden]
Date: 2011-08-12 08:16:24


Author: djowel
Date: 2011-08-12 08:16:23 EDT (Fri, 12 Aug 2011)
New Revision: 73699
URL: http://svn.boost.org/trac/boost/changeset/73699

Log:
Better is_equal test
Text files modified:
   trunk/boost/fusion/algorithm/transformation/pop_back.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/fusion/algorithm/transformation/pop_back.hpp
==============================================================================
--- trunk/boost/fusion/algorithm/transformation/pop_back.hpp (original)
+++ trunk/boost/fusion/algorithm/transformation/pop_back.hpp 2011-08-12 08:16:23 EDT (Fri, 12 Aug 2011)
@@ -61,8 +61,10 @@
         template <typename I1, typename I2>
         struct equal_to
             : result_of::equal_to<
- typename equal_to_helper<I1, I2::is_last>::type
- , typename equal_to_helper<I2, I1::is_last>::type
+ typename equal_to_helper<I1,
+ (I2::is_last && !I1::is_last)>::type
+ , typename equal_to_helper<I2,
+ (I1::is_last && !I2::is_last)>::type
>
         {};
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk