parse: instantiate more parsing types

This commit is contained in:
Danny Robson 2019-02-02 13:44:19 +11:00
parent 4b37f59e22
commit 462e1b2a2f

View File

@ -124,4 +124,7 @@ cruft::parse<FINAL> (cruft::view<char const*> &str) { \
return cruft::cast::narrow<FINAL> (res); \
}
C_PARSE_WITH_CAST(unsigned int, unsigned long)
C_PARSE_WITH_CAST(short, long)
C_PARSE_WITH_CAST(int, long)
C_PARSE_WITH_CAST(unsigned short, unsigned long)
C_PARSE_WITH_CAST(unsigned int, unsigned long)