title: std::wstring to_wstring( double value );
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/10664699/stdto-string-more-than-instance-of-overloaded-function-matches-the-argument">std::to_string - more than instance of overloaded function matches the argument list</a></p>
  </blockquote>
  
  <pre><code>#include &lt;string&gt;
  
  int main()
  {
      double randDouble = 1245.432;
      std::wstring stringDouble = std::to_wstring(randDouble);
  }
  </code></pre>
  <p>When I compile this in Visual Studio 2010 I get this error</p>
  <blockquote>
  <p>Error 1   error C2668: 'std::to_wstring' : ambiguous call to overloaded
  function  6</p>
  <p>1&gt; error C2668:
  'std::to_string' : ambiguous call to overloaded function</p>
  <p>1&gt; d:\program files (x86)\microsoft visual studio
  10.0\vc\include\string(688): could be 'std::string std::to_string(long double)'</p>
  <p>1&gt; d:\program files (x86)\microsoft visual studio
  10.0\vc\include\string(680): or       'std::string std::to_string(_ULonglong)'</p>
  <p>1&gt; d:\program files
  (x86)\microsoft visual studio 10.0\vc\include\string(672): or<br />
  'std::string std::to_string(_Longlong)'</p>
  </blockquote>
  <p>Can someone please explain to me why the compiler is confused and what am I doing wrong?</p>