Skip to content

Commit 3ba3c39

Browse files
committed
Clarify that formatting of pointers is disallowed
1 parent ab161a7 commit 3ba3c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ time formatting and [`fmt/std.h`](#std-api) for other standard library types.
7979

8080
There are two ways to make a user-defined type formattable: providing a
8181
`format_as` function or specializing the `formatter` struct template.
82+
Formatting of non-void pointer types is intentionally disallowed and they
83+
cannot be made formattable via either extension API.
8284

8385
Use `format_as` if you want to make your type formattable as some other
8486
type with the same format specifiers. The `format_as` function should

0 commit comments

Comments
 (0)