Fixes for library headers.
Dirk Herrmann
dirk@ida.ing.tu-bs.de
Wed Sep 10 09:49:00 GMT 1997
Hello!
With the headerfile installed by egcs-970907 some warnings occur and
some things are still not WP96 compliant. (Neither are they in the SGI
implementation.)
Fixes with explanation:
A) operator-> for list iterators:
diff ~egcs/include/g++/list.h list.h
66a67
> pointer operator->() const { return &(*node).data; }
B) fix set::erase to comply with WP96:
diff /automatix/home/dirk/pub/egcs/include/g++/set.h set.h
126c126,128
< void erase(iterator position) {
---
> iterator erase(iterator position) {
> iterator toReturn = position;
> ++toReturn;
127a130
> return toReturn;
C) operator-> for tree iterators,
D) order of member initializers in constructors corrected.
diff /automatix/home/dirk/pub/egcs/include/g++/tree.h tree.h
156a157
> Value* operator->() const { return &link_type(node)->value_field; }
514c515
< : key_compare(comp), node_count(0) { init(); }
---
> : node_count(0), key_compare(comp) { init(); }
517c518
< : key_compare(x.key_compare), node_count(0) {
---
> : node_count(0), key_compare(x.key_compare) {
I hope you don't need anything signed for these fixes ;-)
Best regards, Dirk Herrmann
----------------------------------------------------------------------
Beat the following spammer sites at their own game! SEND SPAM MAIL TO:
postmaster@agis.net postmaster@ascella.net ... to be continued
More information about the Gcc-bugs
mailing list