27 Apr
2006
27 Apr
'06
5:39 p.m.
Kobi Cohen-Arazi wrote:
Just to make sure I wrote it right. My Foo::get is
const std::string& Foo::get () cosnt {...}
So it is a const func and it returns const &, so I can't see a way that string::replace may alter that string without having any kind of trick (wrapper func etc ...) but tell me what you think about that.
OK, in that case you're right. Your original posting had get as std::string Foo::get() const; I'll have to consider the other problem, but for today I'm sick of coding. Sebastian