From: David Abrahams (dave_at_[hidden])
Date: 2005-07-14 11:26:27
"Peter Dimov" <pdimov_at_[hidden]> writes:
> Pavol Droba wrote:
>> This is an interesting observation. So it seems reasonable to drop
>> back to 1.32 version.
> The only reasonable thing is for split to return N+1 pieces for a string
> with N separators, if you ask me. :-) This is lossless in the sense that it
> allows you to reconstruct the original string. The non-reasonable behavior
> can easily be implemented on top of that, but not vice versa.
I realize it may not be obvious that I have a strong opinion in this,
and since there still seems to be some debate about it going on:
I agree with Peter. It's the _only_ reasonable thing.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk