Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-06-01 07:31:19


> On second thought, I would like to change the above signature into:
>
> self_type& trim_left(const self_type& exclusions = self_type() ); // line
97
>
> Taking the argument by const-reference does not pose a problem for the
> vacpp compiler and AFAICT it's even better to take a const-reference as
> copying the argument by value.
>
> toon

No. sizeof(basic_cstring<>) is in most cases 8. I prefer to pass it by
value.

Gennadiy.


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