title: error: 'stod' was not declared in this scope
body: <p>I'm working on a project for c++ and I need to convert a string to a double but I keep getting the error 'stod' was not declared in this scope.  Hasty replies would be greatly appreciated!</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;fstream&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  struct Station
  {
  string StationID, StationName;
  double Elevation, Latitude, Longitude;
  int Date, MXPN, MaxTemp, MinTemp, ObsTime;
  };
  
  int main()
  {
  //Initial Variables
  ifstream InputFile;
  vector&lt;Station&gt; Entry;
  string DummyLine, TempLine;
  double TempDouble;
  int Counter = 0;
  
  
  InputFile.open("finalc++.csv");
  getline(InputFile, DummyLine);
  while (InputFile.good())
  {
      Entry.push_back(Station());
      getline(InputFile, TempLine);
      stringstream ss (TempLine);
      getline(ss, DummyLine, ',');
      Entry[Counter].StationID = DummyLine;
      getline(ss, DummyLine, ',');
      Entry[Counter].StationName = DummyLine;
      getline(ss, DummyLine, ',');
      Entry[Counter].Elevation = stod(DummyLine);
      Counter++;
  }
  for (int i = 200; i &lt;= 500; i++)
  {
      cout &lt;&lt; Entry[i].StationID &lt;&lt; endl;
      cout &lt;&lt; Entry[i].StationName &lt;&lt; endl;
  }
  
      return 0;
  }
  </code></pre>
  
  <p>Is there some library that I have to include to be able to use it?
  btw I'm using codeblocks 12.11 on a windows machine x86.  </p>