From 1e19ae8348e05c70eeaddf2799277468087f1a9b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 7 Feb 2018 06:31:42 -0800 Subject: [PATCH] Workaround a bug in MSVC --- include/fmt/core.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; };