parse: instantiate unsigned in parsing
This commit is contained in:
parent
14e2fc5bd5
commit
951b160d0d
@ -95,3 +95,11 @@ util::parse<int> (util::view<const char*> str)
|
||||
auto intermediate = util::parse<long> (str);
|
||||
return util::cast::lossless<int> (intermediate);
|
||||
}
|
||||
|
||||
|
||||
template <>
|
||||
unsigned
|
||||
util::parse<unsigned> (util::view<const char*> str)
|
||||
{
|
||||
return util::cast::narrow<unsigned> (parse<unsigned long> (str));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user