Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2005-12-12 01:39:18


Bugs item #1378542, was opened at 2005-12-12 06:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1378542&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: liner (liner)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem with boost::algorithm::split

Initial Comment:
string str("*word1-word2*word3-");
vector<std::string> ResultCopy;
split(ResultCopy, str, is_any_of("-*"), token_compress_on);
for(unsigned int nIndex=0; nIndex<ResultCopy.size();
nIndex++)
{
    cout << nIndex << ":" << ResultCopy[nIndex] << endl;
};

The output is:
0:
1:word1
2:word2
3:word3
4:

Is this a bug?

In my opinion the output should be:
0:word1
1:word2
2:word3

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1378542&group_id=7586

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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