This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inlining warning


"John David Anglin" <dave at hiauly1 dot hia dot nrc dot 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]