avoided reliance on template parameter array-to-pointer decay when calling std::equal since it was posing problems for ICC EM64T 9.1 over MSVC++ 8.0

[SVN r36775]
This commit is contained in:
Joaquín M. López Muñoz 2007-01-24 18:19:32 +00:00
parent 8bdf62586f
commit 7be686f18e
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/* Boost.MultiIndex test for standard list operations.
*
* Copyright 2003-2006 Joaquín M López Muñoz.
* Copyright 2003-2007 Joaquín M López Muñoz.
* 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)
@ -32,7 +32,7 @@ using namespace boost::multi_index;
int v[]=check_range;\
std::size_t size_v=sizeof(v)/sizeof(int);\
BOOST_CHECK(std::size_t(std::distance((p).begin(),(p).end()))==size_v);\
BOOST_CHECK(std::equal((p).begin(),(p).end(),v));\
BOOST_CHECK(std::equal((p).begin(),(p).end(),&v[0]));\
}
#undef CHECK_VOID_RANGE

View File

@ -1,6 +1,6 @@
/* Boost.MultiIndex test for range().
*
* Copyright 2003-2004 Joaquín M López Muñoz.
* Copyright 2003-2007 Joaquín M López Muñoz.
* 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)
@ -33,7 +33,7 @@ typedef int_set::iterator int_set_iterator;
int v[]=check_range;\
std::size_t size_v=sizeof(v)/sizeof(int);\
BOOST_CHECK(std::size_t(std::distance((p).first,(p).second))==size_v);\
BOOST_CHECK(std::equal((p).first,(p).second,v));\
BOOST_CHECK(std::equal((p).first,(p).second,&v[0]));\
}
#undef CHECK_VOID_RANGE

View File

@ -1,6 +1,6 @@
/* Boost.MultiIndex test for rearrange operations.
*
* Copyright 2003-2006 Joaquín M López Muñoz.
* Copyright 2003-2007 Joaquín M López Muñoz.
* 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)
@ -32,7 +32,7 @@ using namespace boost::multi_index;
int v[]=check_range;\
std::size_t size_v=sizeof(v)/sizeof(int);\
BOOST_CHECK(std::size_t(std::distance((p).begin(),(p).end()))==size_v);\
BOOST_CHECK(std::equal((p).begin(),(p).end(),v));\
BOOST_CHECK(std::equal((p).begin(),(p).end(),&v[0]));\
}
#undef CHECK_VOID_RANGE