mirror of
https://github.com/fmtlib/fmt.git
synced 2025-06-25 01:11:40 +02:00
Clarify that formatting of pointers is disallowed
This commit is contained in:
@ -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
|
There are two ways to make a user-defined type formattable: providing a
|
||||||
`format_as` function or specializing the `formatter` struct template.
|
`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
|
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
|
type with the same format specifiers. The `format_as` function should
|
||||||
|
Reference in New Issue
Block a user