We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23bbb75 + e28b094 commit 6bb4da2Copy full SHA for 6bb4da2
include/boxed-cpp/boxed.hpp
@@ -212,20 +212,16 @@ struct hash<boxed::detail::boxed<T, U>>
212
#include <fmt/format.h>
213
// clang-format on
214
215
-namespace fmt
216
-{
217
-
218
template <typename Type, typename Tag>
219
struct fmt::formatter<boxed::detail::boxed<Type, Tag>>
220
{
221
constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.begin(); }
222
223
- auto format(boxed::detail::boxed<Type, Tag> const& val, fmt::format_context& ctx)
+ auto format(boxed::detail::boxed<Type, Tag> const& val, fmt::format_context& ctx) const
224
225
return fmt::format_to(ctx.out(), "{}", val.value);
226
}
227
};
228
229
-} // namespace fmt
230
#endif
231
// }}}
0 commit comments