Created
January 2, 2017 20:27
-
-
Save ilpropheta/4118be7867a16e1d2cb126cb94d38d69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int to_int(string_view src) | |
{ | |
int dest; | |
if (parse(cbegin(src), cend(src), int_, dest)) | |
return dest; | |
// error handling | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment