diff --git a/include/fmt/core.h b/include/fmt/core.h index 31438010..abdc4635 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -861,8 +861,12 @@ using wcontext = buffer_context_t; namespace internal { template -struct get_type { - using value_type = decltype(make_value(std::declval())); +class get_type { + private: + static const T& val(); + + public: + using value_type = decltype(make_value(val())); static const type value = value_type::type_tag; };