* EGCS 191016: STL: order of declaration patch
@ 1997-10-22 9:01 Per Abrahamsen
0 siblings, 0 replies; only message in thread
From: Per Abrahamsen @ 1997-10-22 9:01 UTC (permalink / raw)
To: egcs
Using `-Wall' produced warnings from `include/g++/tree.h' because the
declaration order didn't match the construction order. This patch
fixes that.
Is this the right place to report the problem?
1997-10-22 Per Abrahamsen <abraham@dina.kvl.dk>
* tree.h: Put `node_count' after `key_compare' to avoid warning
about reordering declarations in the constructor.
*** tree.h~ Tue Oct 21 18:56:28 1997
--- tree.h Wed Oct 22 16:57:40 1997
***************
*** 463,471 ****
}
protected:
- size_type node_count; // keeps track of size of tree
link_type header;
Compare key_compare;
link_type& root() const { return (link_type&) header->parent; }
link_type& leftmost() const { return (link_type&) header->left; }
--- 463,471 ----
}
protected:
link_type header;
Compare key_compare;
+ size_type node_count; // keeps track of size of tree
link_type& root() const { return (link_type&) header->parent; }
link_type& leftmost() const { return (link_type&) header->left; }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-10-22 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-22 9:01 EGCS 191016: STL: order of declaration patch Per Abrahamsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).