Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ilpropheta/e74441ae6f0bb49e95db4e723c9b4346 to your computer and use it in GitHub Desktop.
string s { sv.data(), sv.size() }; // pre-C++17
auto i = atoi(s.c_str());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment