title: How to use C++11 std::stoi with gcc?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5290089/how-to-convert-a-number-to-string-and-vice-versa-in-c">How to convert a number to string and vice versa in C++</a>  </p>
  </blockquote>
  
  
  
  <p>I am using Qt Creator <strong>2.5.0</strong> and gcc 4.7 (Debian <strong>4.7.2</strong>-4). I added "QMAKE_CXXFLAGS += -std=c++11" to .pro file. Everything seems to be OK, I used C++11 std::for_each and so on. But when I included "string" header and wanted to use stoi, i got the following error:</p>
  
  <pre><code>performer.cpp:336: error: 'std::string' has no member named 'stoi'
  </code></pre>
  
  <p>I found some questions related to <a href="https://stackoverflow.com/questions/8542221/stdstoi-doesnt-exist-in-g-4-6-1-on-mingw">MinGW</a> and one <a href="http://gcc.gnu.org/ml/gcc-patches/2012-10/msg02544.html" rel="nofollow noreferrer">more</a>, to <a href="https://stackoverflow.com/questions/13453765/does-libstdc-not-implement-stdstoi">Eclipse CDT</a> and they had their answers. But I use Linux, why it is NOT working here?</p>