
29 Mar
2006
29 Mar
'06
7:23 a.m.
On Tue, Mar 28, 2006 at 12:55:19AM +0200, Olaf van der Spek wrote:
On 3/27/06, Pavol Droba <droba@topmail.sk> wrote:
Or should all functions (in all applications and libraries) return const string instead of just string?
Well no, you should make a copy and store it into a variable. There is copying there anyway and if you don't mind returning std::string, you probably don't have problems with performance issues.
But that doesn't look nice and introduces additional variables.
If I find some time, I will have a look. Maybe I'll come up with something. Regards, Pavol