Skip to content

Commit

Permalink
Namespace for format_to
Browse files Browse the repository at this point in the history
  • Loading branch information
willdealtry committed Jun 5, 2024
1 parent 6757ead commit 95601e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpp/arcticdb/codec/encoded_field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,18 +439,18 @@ struct formatter<arcticdb::EncodedFieldImpl> {
template<typename FormatContext>
auto format(const arcticdb::EncodedFieldImpl& field, FormatContext &ctx) const {
const char* label = field.has_ndarray() ? "NDARRAY\n" : "DICT\n";
format_to(ctx.out(), "{}", label);
fmt::format_to(ctx.out(), "{}", label);

format_to(ctx.out(), "Shapes: {}\n", field.shapes_size());
fmt::format_to(ctx.out(), "Shapes: {}\n", field.shapes_size());
for(const auto& shape : field.shapes()) {
format_to(ctx.out(), "\tCodec: {} in_bytes: {}, out_bytes {}\n", arcticdb::codec_type_to_string(shape.codecs_[0].codec_), shape.in_bytes(), shape.out_bytes());
fmt::format_to(ctx.out(), "\tCodec: {} in_bytes: {}, out_bytes {}\n", arcticdb::codec_type_to_string(shape.codecs_[0].codec_), shape.in_bytes(), shape.out_bytes());
}

format_to(ctx.out(), "Values: {}\n", field.values_size());
fmt::format_to(ctx.out(), "Values: {}\n", field.values_size());
for(const auto& value : field.values()) {
format_to(ctx.out(), "\tCodec: {} in_bytes: {}, out_bytes {}\n", arcticdb::codec_type_to_string(value.codecs_[0].codec_), value.in_bytes(), value.out_bytes());
fmt::format_to(ctx.out(), "\tCodec: {} in_bytes: {}, out_bytes {}\n", arcticdb::codec_type_to_string(value.codecs_[0].codec_), value.in_bytes(), value.out_bytes());
}
return format_to(ctx.out(), "\n");
return fmt::format_to(ctx.out(), "\n");
}
};

Expand Down

0 comments on commit 95601e1

Please sign in to comment.