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