[Patch] libstdc++/21172
Doug Gregor
dgregor@cs.indiana.edu
Thu Feb 15 14:56:00 GMT 2007
On Feb 11, 2007, at 12:57 PM, Paolo Carlini wrote:
> @@ -427,7 +431,7 @@
> __glibcxx_function_requires(_LessThanComparableConcept<
> typename iterator_traits<_RandomAccessIterator>::value_type>)
> __glibcxx_requires_valid_range(__first, __last);
> - // __glibcxx_requires_heap(__first, __last);
> + __glibcxx_requires_heap(__first, __last);
>
> while (__last - __first > 1)
> std::pop_heap(__first, _RandomAccessIterator(__last--));
I can't imagine why that __glibcxx_requires_heap was commented-out.
This patch looks good to me.
Cheers,
Doug
More information about the Libstdc++
mailing list