Skip to content

Why use operator<< instead of fmt::formatter for custom types? #188

Answered by odygrd
Codeazure asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't a particular reason for using ostream operator<< in the examples. I just did it for convenience as I assumed that most people know about ostream overloading compared to the fmt formatter one.
fmt formatter should also work with the examples so it is up to the user what to use.

This has now been added to the documentation https://quillcpp.readthedocs.io/en/latest/tutorial.html#requirements

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by odygrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants