This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] libstdc++/8645
Phil Edwards wrote:
On Fri, Nov 22, 2002 at 03:07:23PM +0100, Paolo Carlini wrote:
* include/bits/stl_tree.h (_Rb_tree_rebalance_for_erase):
Don't check that __w->_M_left != 0 and __w->_M_right != 0
when they can't be otherwise.
Thanks. As an aside, I wondered if those couldn't already be elided by
the compiler using
http://gcc.gnu.org/news/null.html
but I don't know whether this optimization is still performed.
A *very* interesting aside, indeed!
Thanks for your review.
Ciao, Paolo.