From 0ee4273b042d5ce8fc2da1542c942867797e0ae4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 18 Feb 2018 05:47:29 +0000 Subject: [PATCH] Put is_enum check first not to instantiate convert_to_int unnecessarily --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 2881c200..eebce949 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -588,7 +588,7 @@ void make_value(const T *p) { template inline typename std::enable_if< - convert_to_int::value && std::is_enum::value, + std::is_enum::value && convert_to_int::value, typed_value>::type make_value(const T &val) { return static_cast(val); }