title: Enabling string conversion functions in MinGW
body: <p>this code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  int main()
  {
      std::string s = "52123210";
      int derp = std::stoi(s, 0, 10);
      std::to_string(derp); 
      return 0;
  }
  </code></pre>
  
  <p>with this error:</p>
  
  <p>test.cpp:10:2: error: 'stoi' is not a member of 'std'</p>
  
  <p>test.cpp:11:2: error: 'to_string' is not a member of 'std'</p>
  
  <p>tried this:</p>
  
  <p><a href="http://tehsausage.com/mingw-to-string" rel="nofollow">http://tehsausage.com/mingw-to-string</a>
  (not work)</p>
  
  <p>Update my MingW from 4.6.1 to 4.8.1
  (not work)</p>
  
  <p>possible bug:
  <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522" rel="nofollow">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522</a>
  (beyond of my knowledge to apply anything, I don't dare to touch the compiler's code)</p>
  
  <p>**Also not work with "using namespace std" but produced 'stoi' and 'to_string' not declared
  error instead.</p>