mirror of
https://github.com/boostorg/utility.git
synced 2025-07-30 04:47:30 +02:00
Fixed silly little bug of mine in swap/test/swap_arrays.cpp
[SVN r47626]
This commit is contained in:
@ -30,7 +30,7 @@ int test_main(int, char*[])
|
|||||||
|
|
||||||
swap_test_class two_d_array1[firstDimension][secondDimension];
|
swap_test_class two_d_array1[firstDimension][secondDimension];
|
||||||
swap_test_class two_d_array2[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::swap_count(), firstDimension*secondDimension);
|
||||||
BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0);
|
BOOST_CHECK_EQUAL(swap_test_class::copy_count(), 0);
|
||||||
|
Reference in New Issue
Block a user