I have code that breaks a string into tokens using boost:
boost::algorithm::iter_split( result_vector, input, boost::algorithm::first_finder(delimiter));
What is the best and most elegant way to change this so that there are no empty tokens in the results?
For example, my input might be:
foo.bar.baz.
where . - delimiter.
source share