Boost logo

Boost :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2006-03-27 17:55:19


On 3/27/06, Pavol Droba <droba_at_[hidden]> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk