recursive inlines in stl_tree

Benjamin Kosnik bkoz@cygnus.com
Wed Nov 18 17:39:00 GMT 1998


I suspect this is declared inline because either the SGI compiler is
capable of inlining it, or a general typo. I haven't checked to verify
the SGI compiler behavior: out of curiosity, is anyone using a
compiler that does? G++ is not able to inline this, and it would seem
to make sense to me to remove it, as per your suggestion.

-Benjamin


1998-11-18  Phil Edwards <pedwards@ball.com>

	* stl/bits/stl_tree.h (__black_count): Remove inline. 

Index: /stl/bits/stl_tree.h
===================================================================
RCS file: /cvs/cvsfiles/unsupported/isolib/stl/bits/stl_tree.h,v
retrieving revision 1.8
diff -c -p -r1.8 stl_tree.h
*** stl_tree.h	1998/10/26 23:06:06	1.8
--- stl_tree.h	1998/11/19 01:31:28
*************** _Rb_tree<_Key, _Value, _KoV, _Compare, _
*** 1253,1259 ****
                                               upper_bound(__k));
  }
  
! inline int 
  __black_count(_Rb_tree_node_base* __node, _Rb_tree_node_base* __root,
  	      int __sum = 0)
  {
--- 1253,1259 ----
                                               upper_bound(__k));
  }
  
! int 
  __black_count(_Rb_tree_node_base* __node, _Rb_tree_node_base* __root,
  	      int __sum = 0)
  {



More information about the Libstdc++ mailing list