Updated [Patch]: PR libstdc++/11504 + constness and casting clean up
Gawain Bolton
gbolton@free.fr
Tue Jul 29 20:12:00 GMT 2003
Ok, here's to hoping there is some truth in the expression "third time
lucky".
This patch is an update of the one posted here:
http://gcc.gnu.org/ml/libstdc++/2003-07/msg00477.html
The only change made was to ensure that the new typedefs follow the
required naming scheme as pointed out by Phil Edwards here:
http://gcc.gnu.org/ml/libstdc++/2003-07/msg00481.html
Here's the suggested change log entry, again adapted following Phil's
comments given here:
http://gcc.gnu.org/ml/libstdc++/2003-07/msg00480.html
2003-07-29 Gawain Bolton <gp.bolton@computer.org>
* include/bits/stl_tree.h: Fix PR libstdc++/11504. Replace
C-style casts with C++-style casts. Changes to avoid
casting away constness. Eliminate _Rb_tree_base_iterator
class. Change _Rb_tree_iterator to use initialization lists.
Move out implementation of __black_count() to...
* src/stl_tree.cc: here and rename _Rb_tree_black_count().
Rename_Rb_tree_base_iterator::_M_increment() to
_Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
_Rb_tree_decrement.
* config/linker-map.gnu: Add and change symbols here.
Cheers,
Gawain
--
Gawain Bolton
Coignieres, France
PGP Info: Key server: http://wwwkeys.pgp.net
Key id: 6EBEDEA6
Fingerprint: 65C0 0030 21D1 7A01 546A E7DB D60F 47E0 6EBE DEA6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr_libstdc++_11504_patch.txt
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030729/4ca20add/attachment.txt>
More information about the Libstdc++
mailing list