I know this is a quite easy problem but I just want to solve it for myself once and for all
I would simply like to split a string into an array using a character as
Boost has the split() you are seeking in algorithm/string.hpp:
algorithm/string.hpp
std::string sample = "07/3/2011"; std::vector strs; boost::split(strs, sample, boost::is_any_of("/"));