From 35f4fab4c425ea30883ceaafd337589e4969824b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 6 Sep 2024 08:52:25 -0700 Subject: [PATCH] Simplify value ctor --- include/fmt/base.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 255f9559..60972421 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2240,11 +2240,12 @@ template class value { } FMT_ALWAYS_INLINE value(const void* val) : pointer(val) {} + // We can't use mapped_t because of a bug in MSVC 2017. template ::map( std::declval()))>::value)> FMT_CONSTEXPR20 FMT_ALWAYS_INLINE value(T&& val) { - *this = arg_mapper::map(val); + *this = arg_mapper::map(val); } template