Optimize range formatter

This commit is contained in:
Victor Zverovich
2022-11-26 08:50:46 -08:00
parent a69e43c9d7
commit fae6f7e081
2 changed files with 11 additions and 18 deletions
+2 -2
View File
@@ -3121,8 +3121,8 @@ struct formatter<T, Char,
U == detail::type::cstring_type ||
U == detail::type::char_type),
int> = 0>
FMT_CONSTEXPR void set_debug_format() {
specs_.type = presentation_type::debug;
FMT_CONSTEXPR void set_debug_format(bool set = true) {
specs_.type = set ? presentation_type::debug : presentation_type::none;
}
template <typename FormatContext>