Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53062 - trunk/libs/algorithm/minmax/test
From: steven_at_[hidden]
Date: 2009-05-16 20:39:23


Author: steven_watanabe
Date: 2009-05-16 20:39:22 EDT (Sat, 16 May 2009)
New Revision: 53062
URL: http://svn.boost.org/trac/boost/changeset/53062

Log:
Qualify minmax with boost:: to avoid ambiguity with std::minmax. Fixes #3023
Text files modified:
   trunk/libs/algorithm/minmax/test/minmax_test.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/algorithm/minmax/test/minmax_test.cpp
==============================================================================
--- trunk/libs/algorithm/minmax/test/minmax_test.cpp (original)
+++ trunk/libs/algorithm/minmax/test/minmax_test.cpp 2009-05-16 20:39:22 EDT (Sat, 16 May 2009)
@@ -54,23 +54,23 @@
   less_count<Value> lc(counter);
 
   // Test functionality
- tuple<Value const&, Value const&> result1 = minmax(zero, one);
+ tuple<Value const&, Value const&> result1 = boost::minmax(zero, one);
   BOOST_CHECK_EQUAL( get<0>(result1), zero );
   BOOST_CHECK_EQUAL( get<1>(result1), one );
 
- tuple<Value const&, Value const&> result2 = minmax(one, zero);
+ tuple<Value const&, Value const&> result2 = boost::minmax(one, zero);
   BOOST_CHECK_EQUAL( get<0>(result2), zero );
   BOOST_CHECK_EQUAL( get<1>(result2), one );
   
   // Test functionality and number of comparisons
   lc.reset();
- tuple<Value const&, Value const&> result3 = minmax(zero, one, lc );
+ tuple<Value const&, Value const&> result3 = boost::minmax(zero, one, lc );
   BOOST_CHECK_EQUAL( get<0>(result3), zero );
   BOOST_CHECK_EQUAL( get<1>(result3), one );
   BOOST_CHECK_EQUAL( counter, 1 );
 
   lc.reset();
- tuple<Value const&, Value const&> result4 = minmax(one, zero, lc );
+ tuple<Value const&, Value const&> result4 = boost::minmax(one, zero, lc );
   BOOST_CHECK_EQUAL( get<0>(result4), zero );
   BOOST_CHECK_EQUAL( get<1>(result4), one );
   BOOST_CHECK_EQUAL( counter, 1);


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