Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2003-10-20 02:00:50


Gennadiy Rozental wrote:
>>>How about inplace(some_string).trim()?
>>>
>>>The inplace-view could also be used for other containers than
>>>std::string.
>>
>>This is not a good direction of thinking. Any packing of algorithms into
>>one huge class is a big flaw in the library design.
>>It is not flexible, dissallows extensibility and it is hard to maintain

I agree ...

> How about trim ( in_place( orig ) )?

... this sure is the better way.

The inplace-view still can be used for other containers
(at least for certain algorthims), too.

Regards,
m


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