From eb9a95d42688b32289c00c2b802ea650f57d4481 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 5 May 2025 10:55:59 -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