Skip to content

Commit 6bb4da2

Browse files
authored
Merge pull request #24 from tchaikov/extraneous-fmt
do not put fmt::formatter into fmt namespace
2 parents 23bbb75 + e28b094 commit 6bb4da2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/boxed-cpp/boxed.hpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -212,20 +212,16 @@ struct hash<boxed::detail::boxed<T, U>>
212212
#include <fmt/format.h>
213213
// clang-format on
214214

215-
namespace fmt
216-
{
217-
218215
template <typename Type, typename Tag>
219216
struct fmt::formatter<boxed::detail::boxed<Type, Tag>>
220217
{
221218
constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.begin(); }
222219

223-
auto format(boxed::detail::boxed<Type, Tag> const& val, fmt::format_context& ctx)
220+
auto format(boxed::detail::boxed<Type, Tag> const& val, fmt::format_context& ctx) const
224221
{
225222
return fmt::format_to(ctx.out(), "{}", val.value);
226223
}
227224
};
228225

229-
} // namespace fmt
230226
#endif
231227
// }}}

0 commit comments

Comments
 (0)