title: c++ for each vector of strings
body: <pre><code>    typedef std::vector&lt;std::string&gt; TVector;
      TVector a_list;
  
      populate vector...
      for_each(a_list.begin(),a_list.end(),std::toupper);
  </code></pre>
  
  <p>error</p>
  
  <pre><code>no matching function for call to 'for_each(std::vector&lt;std::basic_string&lt;char&gt; &gt;::iterator, std::vector&lt;std::basic_string&lt;char&gt; &gt;::iterator, &lt;unresolved overloaded function type&gt;)
  </code></pre>
  
  <p>Do I need to iterate over the elements using the a standard for loop ? Or is there another way I am not allowed to use c++ 11 features.</p>
  
  <p>Thanks </p>