20 May
2015
20 May
'15
6:32 p.m.
Hi, I am getting two empty strings from the following program, void boost_split_test() { const string &text("-"); vector<string> tokens; split(tokens, text, boost::is_any_of("-"), token_compress_on); cout << "size of tokens " << tokens.size() << '\n'; for (auto const &e : tokens) cout << e.size() << '\n'; } Output: size of tokens 2 0 0 Is this expected output? I expecting an zero split parts. Could someone clarify? -- Thanks, :) Venki.