From c76957565c37bbbc0bd9ef2fb029e4d0ede6bc29 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 31 Aug 2019 06:34:32 -0700 Subject: [PATCH] FixedEnum -> StrongEnum and make it a regression test --- include/fmt/core.h | 3 ++- test/format-test.cc | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 43db49df..66abfd4b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -825,7 +825,8 @@ template struct arg_mapper { FMT_ENABLE_IF(std::is_enum::value && !has_formatter::value && !has_fallback_formatter::value)> - FMT_CONSTEXPR auto map(const T& val) -> decltype(map(static_cast::type>(val))) { + FMT_CONSTEXPR auto map(const T& val) -> decltype( + map(static_cast::type>(val))) { return map(static_cast::type>(val)); } template ;