title: Disable warning in MSVC++2010
body: <p>I have the following code:</p>
  
  <pre><code>/** Stupidly copies unicode chars into normal chars. */
  std::string wstring2string(__in  const std::wstring&amp; s)
  {
      std::string temp(s.length(), ' ');
  #pragma warning(push)
  #pragma warning(disable: 4244) // possible loss of data
      std::copy(s.begin(), s.end(), temp.begin());
  #pragma warning(pop)
      return temp;
  }
  </code></pre>
  
  <p>My compiler <em>still</em> shows me warning C4244:</p>
  
  <pre><code>1&gt;c:\program files\microsoft visual studio 10.0\vc\include\xutility(2144): warning C4244: '=': Konvertierung von 'const wchar_t' in 'char', möglicher Datenverlust
  1&gt;          c:\program files\microsoft visual studio 10.0\vc\include\xutility(2165): Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-template "_OutIt std::_Copy_impl&lt;_InIt,_OutIt&gt;(_InIt,_InIt,_OutIt,std::_Nonscalar_ptr_iterator_tag)".
  </code></pre>
  
  <p>(in English: "Conversion of <code>const wchar_t</code> to <code>char</code>, possible loss of data, see reference to instantiation of the just compiled function template …").</p>
  
  <p>How can I disable it?!</p>