Opened 17 years ago
Closed 17 years ago
#534 closed Bugs (None)
problem with boost::algorithm::split
Reported by: | liner | Owned by: | memring |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.