title: std::to_string - more than instance of overloaded function matches the argument list
body: <p><code>counter</code> is an <code>int</code></p>
  
  <pre><code>void SentryManager::add(std::string name,std::shared_ptr&lt;Sentry&gt;){
      name = name + std::to_string(counter);
  }
  </code></pre>
  
  <p>What would be the best way to stop this error? When I was being lazy I just made the int <code>long long</code> (or something), but I'm sure there is a better way of solving this.</p>
  
  <p>Error message:</p>
  
  <pre><code>sentrymanager.cpp(8): error C2668: 'std::to_string' : ambiguous call to overloaded function
  </code></pre>
  
  <p>I am using Visual C++ 2010 Express.</p>