I have a string like this:
std::string input("I #am going to# learn how #to use #boost# library#");
I do this:
std::vector<std::string> splitVector;
boost::split(splitVector, input, boost::is_any_of("#"));
And got this: (splitVector)
splitVector:
"I "
"am going to"
" learn how "
"to use "
"boos"
" library"
"" // **That's odd, why do I have an empty string here ?**
But need something like this:
splitVector:
"I "
"#am going to"
"# learn how "
"#to use "
"#boost"
"# library"
"#"
How to do that ? Or maybe there is another way to do it in boost library ?
And why do I get an empty string in splitVector
?