title: function that covers boost::trim and accepts std::vector<std::string>
body: <pre class="lang-cpp prettyprint-override"><code>void trimMyStrings(std::vector&lt;std::string&gt; &amp;dataVectors) {
      for(auto &amp;dataVector : dataVectors) {
          boost::algorithm::trim(dataVector);
      }
  }
  
  int main() {
      std::string firstWord = &quot;   blaasldlasasdasd   &quot;;
      std::string secondWord = &quot;   asdasdasd    &quot;;
      std::vector&lt;std::string&gt; combineWord{firstWord, secondWord};
      trimMyStrings(combineWord);
      std::cout &lt;&lt; firstWord &lt;&lt; &quot;&amp;&quot; &lt;&lt; &quot;secondWord&quot;;
  }
  </code></pre>
  <p>the code above doesn't work</p>
  <p>no error but the <code>firstWord</code> and <code>secondWord</code> don't get trimmed on the <code>cout</code></p>
  <p>How do I make it work?</p>