re PR libstdc++/50661 (std::equal should use more efficient version for arrays of pointers)
2011-10-11 Emil Wojak <emil@wojak.eu> PR c++/50661 * include/bits/stl_algobase.h (equal): Compare arrays of pointers too with memcmp. From-SVN: r179801
This commit is contained in:
parent
45ce6084c2
commit
92b2342a6e
@ -1,3 +1,9 @@
|
||||
2011-10-11 Emil Wojak <emil@wojak.eu>
|
||||
|
||||
PR c++/50661
|
||||
* include/bits/stl_algobase.h (equal): Compare arrays of pointers
|
||||
too with memcmp.
|
||||
|
||||
2011-10-10 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
PR libstdc++/49818
|
||||
@ -11,7 +17,7 @@
|
||||
* libsupc++/eh_catch.cc: Same.
|
||||
* libsupc++/eh_globals.cc: Same.
|
||||
* libsupc++/eh_type.cc: Same.
|
||||
|
||||
|
||||
2011-10-07 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* testsuite/util/testsuite_allocator.h (uneq_allocator): Add
|
||||
|
@ -812,7 +812,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
{
|
||||
typedef typename iterator_traits<_II1>::value_type _ValueType1;
|
||||
typedef typename iterator_traits<_II2>::value_type _ValueType2;
|
||||
const bool __simple = (__is_integer<_ValueType1>::__value
|
||||
const bool __simple = ((__is_integer<_ValueType1>::__value
|
||||
|| __is_pointer<_ValueType1>::__value)
|
||||
&& __is_pointer<_II1>::__value
|
||||
&& __is_pointer<_II2>::__value
|
||||
&& __are_same<_ValueType1, _ValueType2>::__value);
|
||||
|
Loading…
Reference in New Issue
Block a user