title: How to call a function inside an overloaded function
body: <p>There are two functions:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;string.h&gt;
  #include &lt;vector&gt;
  
  uning namespace std;
  
  
  vector&lt;string&gt; func1(vector&lt;string&gt; name1){
      vector&lt;string&gt; out;
  
      //do something and call our first function
      for(int i=0; i&lt;100;i++){    
          out.push_back(func1(name1[i]));
      }
      return out;
  }
  
  
  string func1(string name1){
      string out;
  
      //do something
  
      return out;
  }
  
  int main(){
  vector&lt;string&gt; vector_in;
  vector&lt;string&gt; vector_out;
  //generate text
  for (int i = 0; i &lt; 100; i++) {
      vector_in.push_back(string("string"));
  }
  for (int i = 0; i &lt; 100; i++) {
      vector_out.push_back(func1(vector_in));
  }
  </code></pre>
  
  <p>But when I try to call function <code>string func1(string name1)</code> from function <code>vector&lt;string&gt; func1(vector&lt;string&gt; name1)</code> I get an error:</p>
  
  <blockquote>
    <p>Error C2664 "std::vector> func1(std::vector>)": it is impossible to convert>argument 1 from "string" to "std::vector,std::allocator&lt;_Ty>>"</p>
  </blockquote>
  
  <p>What could be the problem?</p>