[v3] parallel-mode lexicographical_compare/check_type
Benjamin Kosnik
bkoz@redhat.com
Thu Sep 13 18:36:00 GMT 2007
... this fixes the last remaining compile fail for libstdc++ in parallel
mode.
This is necessary from bits/stl_algobase.h line 901:
if (*__first1 < *__first2)
return true;
if (*__first2 < *__first1)
The fix is to put in an operator< for both arguments for the
two-argument __gnu_parallel::less, and to add a partial specialization
for single-argument __parallel::less, to avoid ambiguity when the
arguments are of the same type.
I'd actually put this in earlier drafts, but taken it out by mistake.
Ok?
tested x86/linux
tested x86/linux parallel
-benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.20070913
Type: application/octet-stream
Size: 1939 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070913/42c943d7/attachment.obj>
More information about the Libstdc++
mailing list