Inlining warning

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Apr 29 18:00:00 GMT 2003


"John David Anglin" <dave@hiauly1.hia.nrc.ca> writes:

[...]

|    failed in call to `__gnu_cxx::__normal_iterator<typename _Alloc::pointer, 
|    std::basic_string<_CharT, _Traits, _Alloc> > std::basic_string<_CharT, 
|    _Traits, _Alloc>::_M_ibegin() const [with _CharT = wchar_t, _Traits = 
|    std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>]'

It is odd the compiler cannot inline this function :-(


      // For the internal use we have functions similar to `begin'/`end'
      // but they do not call _M_leak.
      iterator
      _M_ibegin() const { return iterator(_M_data()); }

which means that the abstraction penalty might increase.

-- Gaby



More information about the Libstdc++ mailing list