forked from boostorg/algorithm
Compare commits
43 Commits
boost-1.39
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
|
d019fd5e5e | ||
|
d84f81d841 | ||
|
ce98e8b87e | ||
|
e8a2596637 | ||
|
7b2754b937 | ||
|
784402e5c0 | ||
|
1188575e7b | ||
|
bff2a1e112 | ||
|
6d5e7b5a04 | ||
|
760af1798b | ||
|
1f5542b44c | ||
|
baf3dd99e2 | ||
|
7299b29bf8 | ||
|
539c170b9d | ||
|
c81ee948b7 | ||
|
ba5e4c30c6 | ||
|
cd26ed816c | ||
|
4e15767bed | ||
|
9fa2f90db4 | ||
|
35f317aeac | ||
|
d0a03fdb4e | ||
|
346f032be2 | ||
|
a389d768c4 | ||
|
90fca39906 | ||
|
5b24f31486 | ||
|
b25d6511b3 | ||
|
1541a554f5 | ||
|
7a97b3390e | ||
|
6e5a7497ae | ||
|
f0b8b60379 | ||
|
66019abb2f | ||
|
8758222006 | ||
|
4eef56761a | ||
|
b94a3fbfba | ||
|
614cc2ebab | ||
|
869660ed14 | ||
|
777f30780e | ||
|
26aa37733b | ||
|
f1e60579c2 | ||
|
389dd3c863 | ||
|
f23f61ae9b | ||
|
608112b112 | ||
|
b21b54dc4e |
@@ -171,7 +171,7 @@ namespace boost {
|
||||
// Check what kind of storage are we using right now
|
||||
if(use_fixed_storage(m_Size))
|
||||
{
|
||||
// Using fixed storage, allocate new
|
||||
// Using fixed storage, allocate new
|
||||
set_value_type* pTemp=new set_value_type[Other.m_Size];
|
||||
DestStorage=pTemp;
|
||||
m_Storage.m_dynSet=pTemp;
|
||||
|
@@ -54,23 +54,23 @@ void test(BOOST_EXPLICIT_TEMPLATE_TYPE(Value))
|
||||
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);
|
||||
|
Reference in New Issue
Block a user