Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2005-06-01 16:54:52


Peter Dimov wrote:

[... regarding (busted) 21.3/5 ...]

> My point was that a COW-friendly class should have had
>
> class cow_friendly_string
> {
> public:
>
> char get( int i ) const;
> void set( int i, char ch );
> };
>
> sidestepping the above problem.

I take it that you'd like to sorta castrate "cow_unfriendly_string"
(the standard one) to make it more user (read: looser) friendly. ;-)

It can be done using private std::string. Oder?

regards,
alexander.


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