Optimize common case in parse_format_specs

This commit is contained in:
Victor Zverovich
2020-10-21 17:16:58 -07:00
parent 8924211f3b
commit 86287b8d56
2 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -2423,7 +2423,7 @@ struct custom_char {
operator int() const { return value; }
};
int to_integral(custom_char c) { return c; }
int to_ascii(custom_char c) { return c; }
FMT_BEGIN_NAMESPACE
template <> struct is_char<custom_char> : std::true_type {};