#include #include int main(int argc, char** argv) { if (argc != 2) { std::cout << "Usage: " << argv[0] << " STRING" << std::endl; } else { boost::char_separator sep(":", "", boost::keep_empty_tokens); typedef boost::tokenizer > tokenizer; tokenizer tokens(std::string(argv[1]), sep); for(tokenizer::iterator i = tokens.begin(); i != tokens.end(); ++i) { std::cout << "Token: '" << *i << "'" << std::endl; } } } /* EOF */