title: Function 'stof' could not be resolved
body: <p>I had this problem before but found a work around, only this time a work around is not an option.</p>
  
  <p>I'm trying to use the 'stof' function but I'm getting errors saying:
  'stof' is not a member of 'std'
  Function 'stof' could not be resolved</p>
  
  <p>I'm using it in the exact way if shows on this page:<a href="http://www.cplusplus.com/reference/string/stof/" rel="noreferrer">http://www.cplusplus.com/reference/string/stof/</a></p>
  
  <p>And here are my includes:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;string&gt;
  using namespace std;
  </code></pre>
  
  <p>So, what am I doing wrong? And if a solution cannot be found could someone point me to another way to convert string to float and have it throw an exception if the string was not compatible?</p>
  
  <p>EDIT: Updating with sample program and errors.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
     string testString = "";
     float testFloat = 0.0;
     testFloat = std::stof(testString);
  
     return 0;
  }
  </code></pre>
  
  <p>The errors I get are:</p>
  
  <p>Description Resource    Path    Location    Type
  'stof' is not a member of 'std' main.cpp    /Assignment/src line 33 C/C++ Problem</p>
  
  <p>Description Resource    Path    Location    Type
  Function 'stof' could not be resolved   main.cpp    /Assignment/src line 33 Semantic Error</p>