fmt
fmt copied to clipboard
Dynamic precision for `nested_formatter` does not work
When changing the struct Point example explaining nested_formatter-usage in the API reference to use dynamic precision, execution fails with an error
Execution build compiler returned: 0
Program returned: 139
terminate called after throwing an instance of 'fmt::v10::format_error'
what(): precision is not integer
Program terminated with signal: SIGSEGV
Reproducer on godbolt: https://godbolt.org/z/srYqdvnEb
Thanks for reporting. The problem is that the wrong format context is being used in the nested format call. We'll need to tweak the API a bit to synchronize contexts.