libstdc++/4532: typo in bits/stl_algo.h for partial_sort
brendan@zen.org
brendan@zen.org
Thu Oct 11 05:16:00 GMT 2001
>Number: 4532
>Category: libstdc++
>Synopsis: typo in bits/stl_algo.h for partial_sort
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 11 05:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Brendan Kehoe
>Release: CVS tree
>Organization:
>Environment:
>Description:
In bits/stl_algo.h, the partial_sort method has the line
__glibcpp_function_requires(_LessThanComparableConcept<_ValueType);
This is missing the closing `>' on the template parameter, which only becomes visible when you turn on concept checks.
>How-To-Repeat:
>Fix:
Change the line to
__glibcpp_function_requires(_LessThanComparableConcept<_ValueType>);
Attached patch makes that change.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="diffs-algo.txt"
Content-Disposition: inline; filename="diffs-algo.txt"
2001-10-04 Brendan Kehoe <brendan@zen.org>
* bits/stl_algo.h (partial_sort): Add missing `>' on the
template parameter _ValueType.
Index: include/bits/stl_algo.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/stl_algo.h,v
retrieving revision 1.11
diff -u -p -r1.11 stl_algo.h
--- stl_algo.h 2001/07/20 01:17:13 1.11
+++ stl_algo.h 2001/10/10 11:44:30
@@ -1952,7 +1952,7 @@ __result, __binary_pred, _IterType());
// concept requirements
__glibcpp_function_requires(_Mutable_RandomAccessIteratorConcept<
_RandomAccessIter>);
- __glibcpp_function_requires(_LessThanComparableConcept<_ValueType);
+ __glibcpp_function_requires(_LessThanComparableConcept<_ValueType>);
make_heap(__first, __middle);
for (_RandomAccessIter __i = __middle; __i < __last; ++__i)
More information about the Gcc-bugs
mailing list