title: Error at the list of arguments of a method
body: <p>Using <a href="http://www.cplusplus.com/forum/general/209784/" rel="nofollow noreferrer">this thread as help</a> I want to calculate the distance between two vectors. So my method to do this will be: </p>
  
  <pre><code>template &lt;typename T&gt;
  double  vectors_distance(vector&lt;double&gt; vec1, vector&lt;double&gt; vec2) {
      std::vector&lt;double&gt; aux;
  
      std::transform(vec1.begin(), vec1.end(), vec2.begin(), std::back_inserter(aux), 
          [](double element1, double element2) {return pow((element1 - element2), 2); 
      });
      aux.shrink_to_fit();
  
      return  std::sqrt(std::accumulate(aux.begin(), aux.end(), 0.0));
  }
  </code></pre>
  
  <p>In another method I create two <code>vector&lt;double&gt; numbers, numbers1</code> and fill them up with some values, like this: </p>
  
  <pre><code>stringstream ss(coordSynth);
          double num;
          while (ss &gt;&gt; num) {
              numbers.push_back(num);
              cout &lt;&lt; typeid(numbers).name() &lt;&lt; endl;
          }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>As background knowledge: <code>coordSynth</code> is a string, which contains <code>doubles</code> as values (ie: "0.0, 45.3, 2.0"). For <code>number1</code> happens exactly the same (as for <code>number</code>).
  Fine, now I'm calling <code>vectors_distance(numbers, numbers1);</code> and get the error <code>E0304 No instance of function template "vectors_distance" matches the argument list.</code>. But how? My method has exactly two parameters and I put in there also two vectors? </p>