Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-04-27 13:39:06


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net