title: Multiple split tokens using boost::is_any_of
body: <p>I am unsure how to use <code>boost::is_any_of</code> to split a string using a set of characters, any ONE of which should split the string.</p>
  
  <p>I wanted to do something like this as I understood the is_any_of function takes a Set parameter.</p>
  
  <pre><code>std::string s_line = line = "Please, split|this    string";
  
  std::set&lt;std::string&gt; delims;
  delims.insert("\t");
  delims.insert(",");
  delims.insert("|");
  
  std::vector&lt;std::string&gt; line_parts;
  boost::split ( line_parts, s_line, boost::is_any_of(delims));
  </code></pre>
  
  <p>However this produces a list of boost/STD errors.
  Should I persist with <code>is_any_of</code> or is there a better way to do this eg. using a regex split?</p>