title: Cannot convert parameter from 'int' to 'int&'
body: <p>I'm following the pluralsight C++ course, and in it is the following code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  template &lt;class T&gt;
  T max(T&amp; t1, T&amp; t2)
  {
      return t1 &lt; t2 ? t2 : t1;
  }
  
  int main()
  {
      std::cout &lt;&lt; "Max of 33 and 44 is " &lt;&lt; max(33, 44) &lt;&lt; std::endl;
  
      return 0;
  }
  </code></pre>
  
  <p>I typed over this piece of code, but unlike the code of the course, I get an error message:</p>
  
  <pre><code>C2664: 'max' : cannot convert parameter 1 from 'int' to 'int &amp;'
  </code></pre>
  
  <p>The code in the course is written in Visual Studio Express 2010, while mine is written in Visual Studio Ultimate 2010.</p>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>Thanks to everybody (even Kate Gregory herself) for providing answers and clearing everything up.</p>