From a48daa60e59ae859869ce2594a442b4c356b3d08 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 10 Jun 2019 20:25:04 -0700 Subject: [PATCH] Remove remove_volatile --- include/fmt/core.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 7444cac6..b2873740 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -757,7 +757,7 @@ template struct arg_mapper { FMT_CONSTEXPR bool map(bool val) { return val; } template ::value)> - FMT_CONSTEXPR char_type map(const T& val) { + FMT_CONSTEXPR char_type map(T val) { static_assert( std::is_same::value || std::is_same::value, "mixing character types is disallowed"); @@ -985,13 +985,10 @@ class locale_ref { template using get_type = - type_constant().map( - std::declval::type>())), + type_constant().map(std::declval())), typename Context::char_type>; -template constexpr unsigned long long get_types() { - return 0; -} +template constexpr unsigned long long get_types() { return 0; } template constexpr unsigned long long get_types() {