[SVN r53246]
This commit is contained in:
Joaquín M López Muñoz 2009-05-25 12:20:07 +00:00
parent 8290474391
commit 1eebcfcf5f
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* Copyright 2003-2008 Joaquin M Lopez Munoz.
/* Copyright 2003-2009 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@ -174,6 +174,8 @@ void random_access_index_sort(
* solution adopted.
*/
if(ptrs.size()<=1)return;
typedef typename Node::value_type value_type;
typedef typename Node::impl_pointer impl_pointer;
typedef typename Node::impl_ptr_pointer impl_ptr_pointer;

View File

@ -1,6 +1,6 @@
/* Boost.MultiIndex test for standard list operations.
*
* Copyright 2003-2008 Joaquin M Lopez Munoz.
* Copyright 2003-2009 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@ -148,6 +148,15 @@ static void test_list_ops_unique_seq(BOOST_EXPLICIT_TEMPLATE_TYPE(Sequence))
si.merge(si2,std::greater<int>());
BOOST_CHECK(is_sorted(si,std::greater<int>()));
BOOST_CHECK(si2.empty());
/* testcase for bug reported at
* https://svn.boost.org/trac/boost/ticket/3076
*/
{
Sequence ss3;
sequenced_index &si3=get<1>(ss3);
si3.sort();
}
}
template<typename Sequence>