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.