* egcs-971016/libstc++/stl/tree patch (revised)
@ 1997-10-17 14:36 Greg Galloway
0 siblings, 0 replies; only message in thread
From: Greg Galloway @ 1997-10-17 14:36 UTC (permalink / raw)
To: egcs
Fri Oct 17 13:14:04 EDT 1997 Gregory L. Galloway <gregg@eoeml.gtri.gatech.edu>
* tree.h(rb_tree): Member initializers reordered to match declaration
order and suppress compiler warning.
(create_node): Moved return stmt outside try block to suppress warning.
*** libstdc++/stl/tree.h.orig Fri Oct 17 13:11:28 1997
--- libstdc++/stl/tree.h Fri Oct 17 13:12:32 1997
***************
*** 439,445 ****
try {
# endif /* __STL_USE_EXCEPTIONS */
construct(&tmp->value_field, x);
- return tmp;
# ifdef __STL_USE_EXCEPTIONS
}
catch(...) {
--- 439,444 ----
***************
*** 447,452 ****
--- 446,452 ----
throw;
}
# endif /* __STL_USE_EXCEPTIONS */
+ return tmp;
}
link_type clone_node(link_type x) {
***************
*** 523,529 ****
public:
// allocation/deallocation
rb_tree(const Compare& comp = Compare())
! : key_compare(comp), node_count(0) { init(); }
rb_tree(const rb_tree<Key, Value, KeyOfValue, Compare, Alloc>& x)
: key_compare(x.key_compare), node_count(0) {
--- 523,529 ----
public:
// allocation/deallocation
rb_tree(const Compare& comp = Compare())
! : node_count(0), key_compare(comp) { init(); }
rb_tree(const rb_tree<Key, Value, KeyOfValue, Compare, Alloc>& x)
: key_compare(x.key_compare), node_count(0) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-10-17 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-17 14:36 egcs-971016/libstc++/stl/tree patch (revised) Greg Galloway
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).