diff --git a/parse.cpp b/parse.cpp index 97b8e01a..7b00458a 100644 --- a/parse.cpp +++ b/parse.cpp @@ -84,3 +84,12 @@ C_PARSE(unsigned long long, i) C_PARSE(float, f) C_PARSE(double, f) C_PARSE(long double, f) + + +template <> +int +util::parse (util::view str) +{ + auto intermediate = util::parse (str); + return trunc_cast (intermediate); +}