Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| 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.
So he wants to use RH 7.1 with lyxstring... why?
IMO lyxstring should not be used with RH 7.1.
| gcc -DHAVE_CONFIG_H -I. -I. -I../../src -I../../images -I./../ -I../..
| -I../.. -I../../boost -isystem /usr/X11R6/include -O2 -march=i386
| -mcpu=i686 -c formula.C -o formula.o
| In file included from ../../src/Lsstream.h:20,
| from formula.C:18:
| /usr/include/g++-3/sstream: In method `int stringbuf::overflow (int)':
| /usr/include/g++-3/sstream:194: no matching function for call to
| `lyxstring::replace (size_t &, const size_t &, int &)'
as far as I can see std::string does not have a replace method like
this. (for the standard)
And from looking at the string class provided with RH 7.1 I see one
unstandard replace:
basic_string& replace (size_type pos, size_type n, charT c)
I guess this is the one sstream is trying to call...
Sure we could add this to lyxstring... but I do not really want to...
And no, we are not supposed to implement this as it is not in the
standard.
--
Lgb