title: Issue with std::stol - 'std::invalid_argument' what(): stol
body: <p>I have an issue with <code>std::stol</code>. All answers I have found regarding to issues with <code>std::stol</code> or <code>std::stoi</code> are dealing with C++11 compiling / building.</p>
  
  <pre><code>std::string myString;
  long myLong = std::stol(myString);
  </code></pre>
  
  <p>When I use <code>std::stol()</code> I get the following error:</p>
  
  <pre><code>terminate called after throwing an instance of 'std::invalid_argument'
    what():  stol
  Aborted (core dumped)
  </code></pre>
  
  <p>Any ideas? Building with gcc -std::C++11 works fine.
  Note: I think this is my first C++11 expression I use.</p>