fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.56k stars 2.46k forks source link

Improve std::complex formatter #4050

Closed phprus closed 3 months ago

phprus commented 3 months ago

Based on ideas: #4034

Implemented:

phprus commented 3 months ago

@vitaut please, review this PR.

phprus commented 3 months ago

Current output (2+-2.2i) for complex<double>(2, -2.2) is a formatting error as I think. Or is fix for this bug is not suitable to patch release?

vitaut commented 3 months ago

I missed the fix part. Makes sense to include in the patch release then.