mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-13 15:07:27 +08:00
re PR libstdc++/31554 (stable_partition assumes iterator difference type is always ptrdiff_t)
2007-04-13 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31554 * include/bits/stl_algo.h (stable_partition): Convert __buf.size() to _DistanceType. From-SVN: r123783
This commit is contained in:
parent
d2824043b4
commit
4ecacafc9b
@ -1,3 +1,9 @@
|
||||
2007-04-13 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR libstdc++/31554
|
||||
* include/bits/stl_algo.h (stable_partition): Convert __buf.size()
|
||||
to _DistanceType.
|
||||
|
||||
2007-04-13 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/ext/numeric_traits.h: Do not include <limits>.
|
||||
|
@ -2186,7 +2186,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
return
|
||||
std::__stable_partition_adaptive(__first, __last, __pred,
|
||||
_DistanceType(__buf.requested_size()),
|
||||
__buf.begin(), __buf.size());
|
||||
__buf.begin(),
|
||||
_DistanceType(__buf.size()));
|
||||
else
|
||||
return
|
||||
std::__inplace_stable_partition(__first, __last, __pred,
|
||||
|
Loading…
Reference in New Issue
Block a user