Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-01-12 18:17:08


Author: danieljames
Date: 2008-01-12 18:17:08 EST (Sat, 12 Jan 2008)
New Revision: 42710
URL: http://svn.boost.org/trac/boost/changeset/42710

Log:
Try to make the tenary operation a little simpler for compilers which have
problems with implicit conversions.

Text files modified:
   branches/unordered/trunk/libs/unordered/test/unordered/erase_tests.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/unordered/erase_tests.cpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/unordered/erase_tests.cpp (original)
+++ branches/unordered/trunk/libs/unordered/test/unordered/erase_tests.cpp 2008-01-12 18:17:08 EST (Sat, 12 Jan 2008)
@@ -77,8 +77,8 @@
             BOOST_TEST(next == x.erase(pos));
             --size;
             if(size > 0)
- BOOST_TEST(next ==
- (index == 0 ? x.begin() : boost::next(prev)));
+ BOOST_TEST(index == 0 ? next == x.begin() :
+ next == boost::next(prev));
             BOOST_TEST(x.count(key) == count - 1);
             BOOST_TEST(x.size() == size);
         }


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