Workaround pathological conversion (#2343)

This commit is contained in:
Victor Zverovich
2021-06-06 07:18:44 -07:00
parent 76ee490468
commit 206000a017
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1539,7 +1539,7 @@ FMT_CONSTEXPR FMT_INLINE auto make_arg(const T& val) -> value<Context> {
!std::is_same<decltype(arg), const unformattable&>::value,
"Cannot format an argument. To make type T formattable provide a "
"formatter<T> specialization: https://fmt.dev/latest/api.html#udt");
return arg;
return {arg};
}
template <bool IS_PACKED, typename Context, type, typename T,