summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-17 14:09:42 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-17 14:09:42 +0200
commitc3d53d588dedb007b26809d85187027d1eba8183 (patch)
tree64f65cb1538b6ed43f246cb52961e336a01f202d /src/string.hh
parent37a23633019b070b69e4e5e5b6804a5d94722342 (diff)
revive str_to_int so that the good exception type is thrown on error
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string.hh b/src/string.hh
index e579b741..fb80d425 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -101,6 +101,7 @@ inline String codepoint_to_str(Codepoint cp)
String option_to_string(const Regex& re);
void option_from_string(const String& str, Regex& re);
+int str_to_int(const String& str);
using std::to_string;