Jean-Marc Lasgouttes wrote:
>I forward to the list the message I just got from Ben. It seems that
>RH7.1 sstream wants to use
> lyxstring::replace (size_t &, const size_t &, int &)
>and this does not exist. Are we supposed to implement this? This seems
>strange to me.
>
>Ben, what is the relevant extract of <sstream> (around line 194)?
>
Here's a few lines from <sstream>:
>inline int std::stringbuf::overflow(int ch)
>{
> if((mode & ios::out) == 0)
> return EOF;
>
> streamsize n = pptr() - pbase();
>
> if(n && sync())
> return EOF;
>
> if(ch != EOF)
> {
> std::string::size_type oldSize = buf.size();
>
> buf.replace(rpos, std::string::npos, ch); <---- Line 194
> if(buf.size() - oldSize != 1)
> return EOF;
> ++rpos;
> }
> return 0;
>}
>
Looks like sstream calls overflow when it needs to have the string
buffer expanded, which is probably a reasonable thing to do.
Ben.