title: Why is 'stod' still not declared in this scope even after C++11 is enabled and I have included string?
body: <p>I am having an error while trying to convert a string vector to a double vector. The error keeps saying:</p>
  
  <pre><code>error: 'stod' was not declared in this scope
  </code></pre>
  
  <p>Even though I enabled C++11 for my compiler and I used <code>#include &lt;string&gt;</code> I also used <code>using namespace std;</code> And it still didn't work.</p>
  
  <p>The code is is down below:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  #include &lt;algorithm&gt;
  #include &lt;vector&gt;
  #include &lt;sstream&gt;
  
  using namespace std;
  using stod;
  transform(userNums.begin(), userNums.end(), back_inserter(convUserNums), [](const string &amp; astr){ return stod( astr) ; } ) ;
  </code></pre>