Skip to content

Commit 23bbb75

Browse files
authored
Merge pull request #21 from contour-terminal/fix/custom_formatter
Add parse into custom formatter
2 parents 4dffb78 + 7092393 commit 23bbb75

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ indent_size = 2
1818

1919
[*.yml]
2020
indent_size = 2
21+
22+
[*.md]
23+
indent_size = 2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ template <typename Func, typename... Tuple> struct Wrap_with_tuple {
128128
129129
template <typename call_tuple, typename T, T... ints>
130130
decltype(auto) make_call(call_tuple arg_tuple,
131-
std::integer_sequence<T, ints...> int_seq) {
131+
std::integer_sequence<T, ints...> int_seq) {
132132
return _func(
133133
std::get<std::decay_t<decltype(std::get<ints>(_order))>>(arg_tuple)...);
134134
}

include/boxed-cpp/boxed.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ namespace fmt
218218
template <typename Type, typename Tag>
219219
struct fmt::formatter<boxed::detail::boxed<Type, Tag>>
220220
{
221+
constexpr auto parse(fmt::format_parse_context& ctx) { return ctx.begin(); }
222+
221223
auto format(boxed::detail::boxed<Type, Tag> const& val, fmt::format_context& ctx)
222224
{
223225
return fmt::format_to(ctx.out(), "{}", val.value);

0 commit comments

Comments
 (0)