Missing inlines?

Joerg.Richter@pdv-FS.de Joerg.Richter@pdv-FS.de
Wed Dec 10 10:35:00 GMT 2003


Hi,

I just looked at some STL header (GCC 3.2.1) and found that there are
sometimes some 'inline' missing.

For example in my installation the file
include/bits/stl_tree.h

At line: 1164

  template<typename _Key, typename _Val, typename _KeyOfValue, 
           typename _Compare, typename _Alloc>
    inline void 
    _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::erase(iterator
__position)
    {

There is an inline

But the next function

  template<typename _Key, typename _Val, typename _KeyOfValue, 
           typename _Compare, typename _Alloc>
    typename _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::size_type 
    _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::erase(const _Key& __x)
    {

Has no inline.
I wonder if this is wanted?

I ask because I am looking for a bug which can by caused by missing inlines.
See http://gcc.gnu.org/ml/gcc/2003-09/msg00472.html for details.

I think it should be ok to add this missing inlines. 
I'll try an installation with the missing inlines in place.


Joerg



More information about the Libstdc++ mailing list