Boost logo

Boost-Commit :

From: nielsdekker_at_[hidden]
Date: 2008-07-20 07:05:50


Author: niels_dekker
Date: 2008-07-20 07:05:49 EDT (Sun, 20 Jul 2008)
New Revision: 47626
URL: http://svn.boost.org/trac/boost/changeset/47626

Log:
Fixed silly little bug of mine in swap/test/swap_arrays.cpp
Text files modified:
   trunk/libs/utility/swap/test/swap_arrays.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/utility/swap/test/swap_arrays.cpp
==============================================================================
--- trunk/libs/utility/swap/test/swap_arrays.cpp (original)
+++ trunk/libs/utility/swap/test/swap_arrays.cpp 2008-07-20 07:05:49 EDT (Sun, 20 Jul 2008)
@@ -30,7 +30,7 @@
 
   swap_test_class two_d_array1[firstDimension][secondDimension];
   swap_test_class two_d_array2[firstDimension][secondDimension];
- boost::swap(two_d_array1, two_d_array1);
+ boost::swap(two_d_array1, two_d_array2);
 
   BOOST_CHECK_EQUAL(swap_test_class::swap_count(), firstDimension*secondDimension);
   BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0);


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