From 3ba3c390fba51053e385ba729505ca60869d8a95 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 17 May 2025 10:16:58 -0700 Subject: [PATCH] Clarify that formatting of pointers is disallowed --- doc/api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api.md b/doc/api.md index 1660ad7f..61e5c3de 100644 --- a/doc/api.md +++ b/doc/api.md @@ -79,6 +79,8 @@ time formatting and [`fmt/std.h`](#std-api) for other standard library types. There are two ways to make a user-defined type formattable: providing a `format_as` function or specializing the `formatter` struct template. +Formatting of non-void pointer types is intentionally disallowed and they +cannot be made formattable via either extension API. Use `format_as` if you want to make your type formattable as some other type with the same format specifiers. The `format_as` function should