From 40b6cfe5589656569e03e54e443e1a74b5eb52c9 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 2 Feb 2016 16:50:28 +1100 Subject: [PATCH] format: add integer type specifier --- format.ipp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/format.ipp b/format.ipp index 98c3be4f..c3944bf1 100644 --- a/format.ipp +++ b/format.ipp @@ -78,6 +78,15 @@ namespace util { { return *s == 'u'; } + //--------------------------------------------------------------------- + template <> + inline bool + is_type_specifier (const char *s) + { + return *s == 'i' || *s == 'd'; + } + + //--------------------------------------------------------------------- template <> inline bool