Clarify that formatting of pointers is disallowed

This commit is contained in:
Victor Zverovich
2025-05-05 10:55:59 -07:00
parent d5c33e4f45
commit eb9a95d426

View File

@ -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