title: Weird compiler error: Cannot convert parameter from 'int' to 'int &&'
body: <p>What on earth is going on here?<br>
  I'm trying to create a pair of an <code>int</code> and a <code>string</code> and I can create the pair if I use "magic values" but can't seem to pass in variables.</p>
  
  <pre><code>std::vector&lt;std::pair&lt;int, std::string&gt; &gt; num_text;
  
  std::string text = "Smeg";
  int num = 42;
  
  // Works fine
  num_text.push_back(std::make_pair&lt;int, std::string&gt;(42, std::string("Smeg")));  
  
  // Cannot convert parameter 2 from 'std::string' to 'std::string &amp;&amp;'
  num_text.push_back(std::make_pair&lt;int, std::string&gt;(42, text));
  
  // Cannot convert parameter 1 from 'int' to 'int &amp;&amp;'
  num_text.push_back(std::make_pair&lt;int, std::string&gt;(num, std::string("Smeg")));
  
  // Cannot convert parameter 1 from 'int' to 'int &amp;&amp;'
  num_text.push_back(std::make_pair&lt;int, std::string&gt;(num, text));
  
  // Works fine again
  num_text.push_back(std::make_pair&lt;int, std::string&gt;(42, std::string("Smeg")));
  </code></pre>
  
  <p>I am using VS 2012 and have pasted in some code that was written in VS 2008.  Can't imagine that would have anything to do with it but there was no problem in the original (2008) code.</p>
  
  <p>I kind of feel a bit dumb for not being able to workout what is going on here but what can I say, I just don't get it.</p>