$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Pavol Droba (droba_at_[hidden])
Date: 2005-07-13 09:09:09
Hi,
On Wed, Jul 13, 2005 at 03:12:48PM +0200, Stefan Slapeta wrote:
> hi,
> 
> I assume the behaviour of boost::split not to return the last token has 
> been changed (in CVS). However, a side effect seems to be that there is 
> also one token returned for _empty_ strings, which is very questionable IMO!
> 
> summary (if '/' is the separator):
> 
> boost 1.32:
> ""              -> 0 tokens
> "abc/abc"       -> 2 tokens
> "abc/abc/"      -> 2 tokens
> 
> CVS:
> ""              -> 1 token (!)
> "abc/abc"       -> 2 tokens
> "abc/abc/"      -> 3 tokens
> 
> should be IMO:
> ""              -> 0 tokens
> "abc/abc"       -> 2 tokens
> "abc/abc/"      -> 3 tokens
> 
Hmm, looking through the code, I see you are right. I have not considered this case.
I will see what can be done to fix it.
Thanks,
Pavol.