title: Error: no member named 'stod' in namespace 'std'
body: <p>I am running a code in Sublime Text 2. It shows me an error:</p>
  
  <pre><code>item-&gt;open = std::stod(temp);
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>error: no member named 'stod' in namespace 'std'
                  item-&gt;open = std::stod(temp);
  </code></pre>
  
  <p>Realised that sublime text 2 can't run c++11 code, so saw this post:<a href="http://www.thefourtheye.in/2013/07/Compiling-Cpp-11-Programs-with-Sublime-Text-3.html" rel="nofollow">http://www.thefourtheye.in/2013/07/Compiling-Cpp-11-Programs-with-Sublime-Text-3.html</a></p>
  
  <p>Posted this code in C++.sublime.build:</p>
  
  <pre><code>{
   "cmd": ["g++", "-std=c++0x", "${file}", "-o", "${file_path}/${file_base_name}"],
   "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
   "working_dir": "${file_path}",
   "selector": "source.c, source.c++",
   "variants":
   [
     {
       "name": "Run",
       "cmd":["bash", "-c", "g++ -std=c++0x '${file}' -o '${file_path}/${file_base_name}' &amp;&amp; '${file_path}/${file_base_name}'"]
     }
   ]
  }
  </code></pre>
  
  <p>But the error still exist. Not sure why. Need some guidance...</p>
  
  <p>Update1:</p>
  
  <pre><code>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  Target: x86_64-apple-darwin12.4.0
  Thread model: posix
  </code></pre>
  
  <p>Update2: Changed to c++11. No change.</p>
  
  <pre><code>{
   "cmd": ["g++", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"],
   "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
   "working_dir": "${file_path}",
   "selector": "source.c, source.c++",
   "variants":
   [
     {
       "name": "Run",
       "cmd":["bash", "-c", "g++ -std=c++11 '${file}' -o '${file_path}/${file_base_name}' &amp;&amp; '${file_path}/${file_base_name}'"]
     }
   ]
  }
  </code></pre>