View Single Post
Old Jul 24th, 2005, 6:34 AM   #11
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
The problem posted by OP is so simple -- Forget about using all those other complex templates that do nothing more than make the solution to the problem more complicated
I think boost is a bit of an overkill here, when my function does precisely what is needed and has the added benefit of the separator token being a std::string, not a single char. With that said, he wanted it split into an "array", not just printed to stdout, so you'll need to store the values in an array-like container, which std::vector is.
Cerulean is offline   Reply With Quote