fix formatter<char*> (#3432)
This commit is contained in:
1 parent
d60b907f87
commit
08ef0d0842
2 files changed
+17
-1
No files matched your search
+1
-1
@@ -2694,7 +2694,7 @@ struct formatter<T, Char,
|
||||
template <typename Char> \
|
||||
struct formatter<Type, Char> : formatter<Base, Char> { \
|
||||
template <typename FormatContext> \
|
||||
auto format(const Type& val, FormatContext& ctx) const \
|
||||
auto format(Type const& val, FormatContext& ctx) const \
|
||||
-> decltype(ctx.out()) { \
|
||||
return formatter<Base, Char>::format(static_cast<Base>(val), ctx); \
|
||||
} \
|
||||
|
||||
Reference in new issue
Block a user