title: Is codecvt not a std header?
body: <p>This code compiles with Visual C++ 11 and runs as expected on Windows 7 but fails to compile using either MinGW 4.7.0 on Windows 7 or gcc 4.8.0 on Linux. Compiling with <code>-std=c++11</code> flag</p>
  
  <pre><code>#include &lt;codecvt&gt;
  #include &lt;string&gt;
  
  // convert UTF-8 string to wstring
  std::wstring utf8_to_wstring (const std::string&amp; str)
  {
      std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt; myconv;
      return myconv.from_bytes(str);
  }
  
  // convert wstring to UTF-8 string
  std::string wstring_to_utf8 (const std::wstring&amp; str)
  {
      std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt; myconv;
      return myconv.to_bytes(str);
  }
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>codecvt: No such file or directory.</p>
  </blockquote>