title: Cygwin not compiling stod
body: <p>I'm trying to compile this <a href="http://www.cplusplus.com/reference/string/stod/" rel="nofollow">example code</a></p>
  
  <pre><code>#include &lt;iostream&gt;   // std::cout
  #include &lt;string&gt;     // std::string, std::stod
  
  int main ()
  {
    std::string orbits ("365.24 29.53");
    std::string::size_type sz;     // alias of size_t
  
    double earth = std::stod (orbits,&amp;sz);
    double moon = std::stod (orbits.substr(sz));
    std::cout &lt;&lt; "The moon completes " &lt;&lt; (earth/moon) &lt;&lt; " orbits per Earth year.\n";
    return 0;
  }
  </code></pre>
  
  <p>Trying to compile from the command prompt gives</p>
  
  <pre><code>C:\Users\DWane\Documents&gt;g++ -std=c++0x testme.cpp -o out.exe
  testme.cpp: In function 'int main()':
  testme.cpp:9:18: error: 'stod' is not a member of 'std'
     double earth = std::stod (orbits,&amp;sz);
                    ^
  testme.cpp:10:17: error: 'stod' is not a member of 'std'
     double moon = std::stod (orbits.substr(sz));
                   ^
  </code></pre>
  
  <p>I'm running Windows 8 64bit and have g++ (GCC) 4.8.3.</p>