title: no matching function for call to 'transform
body: <p>can anyone tell me what is the mistake in this program</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;algorithm&gt;
  
  using namespace std;
  
  int main()
  {
      string str = "Now";
  
      transform(str.begin(), str.end(), str.begin(), toupper);
  
      cout&lt;&lt;str;
  
      return 0;
  }
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>"no matching function for call to 'transform(__gnu_cxx::__normal_iterator&lt;char*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, __gnu_cxx::__normal_iterator&lt;char*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, __gnu_cxx::__normal_iterator&lt;char*, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, &lt;unresolved overloaded function type&gt;)'
  compilation terminated due to -Wfatal-errors."
  </code></pre>