cql3: define format_as() for formatting cql3::cql3_type

in the same spirit of 724a6e26, format_as() is defined for
cql3::cql3_type. despite that this is not used yet by fmt v9,
where we still have FMT_DEPRECATED_OSTREAM, this prepares us for
fmt v10.

Refs #13245
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes scylladb/scylladb#16232
This commit is contained in:
Kefu Chai
2023-11-30 12:12:22 +08:00
committed by Botond Dénes
parent 3d1667c720
commit 5874652967

View File

@@ -77,6 +77,9 @@ private:
class raw_collection;
class raw_ut;
class raw_tuple;
friend std::string_view format_as(const cql3_type& t) {
return t.to_string();
}
friend std::ostream& operator<<(std::ostream& os, const cql3_type& t) {
return os << t.to_string();
}