diff --git a/cql3/cql3_type.hh b/cql3/cql3_type.hh index 911e1aeac0..17739c1ca6 100644 --- a/cql3/cql3_type.hh +++ b/cql3/cql3_type.hh @@ -363,3 +363,17 @@ inline bool operator==(const cql3_type& a, const cql3_type& b) { #endif } + +template <> +struct fmt::formatter: fmt::formatter { + auto format(const cql3::cql3_type& t, fmt::format_context& ctx) const { + return formatter::format(format_as(t), ctx); + } +}; + +template T> +struct fmt::formatter: fmt::formatter { + auto format(const T& t, fmt::format_context& ctx) const { + return formatter::format(format_as(t), ctx); + } +};