This is an automated email from the ASF dual-hosted git repository.
gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 911494ab refactor: replace std::vformat with std::format for
ListType|MapType::ToString (#545)
911494ab is described below
commit 911494abb09845f82d0e2cfcc41dc4366871ca13
Author: Feiyang Li <[email protected]>
AuthorDate: Thu Jan 29 22:02:38 2026 +0800
refactor: replace std::vformat with std::format for
ListType|MapType::ToString (#545)
---
src/iceberg/type.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/iceberg/type.cc b/src/iceberg/type.cc
index b4e87678..f008ad90 100644
--- a/src/iceberg/type.cc
+++ b/src/iceberg/type.cc
@@ -156,7 +156,7 @@ TypeId ListType::type_id() const { return kTypeId; }
const SchemaField& ListType::element() const { return element_; }
std::string ListType::ToString() const {
- return std::vformat("list<{}>", std::make_format_args(element_));
+ return std::format("list<{}>", element_.ToString());
}
std::span<const SchemaField> ListType::fields() const { return {&element_, 1};
}
@@ -213,7 +213,7 @@ const SchemaField& MapType::value() const { return
fields_[1]; }
TypeId MapType::type_id() const { return kTypeId; }
std::string MapType::ToString() const {
- return std::vformat("map<{}: {}>", std::make_format_args(key(), value()));
+ return std::format("map<{}: {}>", key().ToString(), value().ToString());
}
std::span<const SchemaField> MapType::fields() const { return fields_; }