Skip to content

int: No longer force disabling of fmt exceptions#5118

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-fmtxcpt
Open

int: No longer force disabling of fmt exceptions#5118
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-fmtxcpt

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Mar 28, 2026

I think forcing fmt to disable exceptions is probably doing more harm than good, probably does not work as expected for apps that use fmt elsewhere (when we first started using fmt, it was not super popular, so we weren't really concerned about how we might conflict with other libraries in the same app), and disabling exceptions makes it behave differently than std::format/print.

So let's stop doing this and see what happens! (In main.)

Also, declutter by removing the FMT_USE_GRISU definition, which was only meaningful for very old fmt versions that are older than our minimum supported version now.

I think forcing fmt to disable exceptions is probably doing more harm
than good, probably does not work as expected for apps that use fmt
elsewhere (when we first started using fmt, it was not super popular,
so we weren't really concerned about how we might conflict with other
libraries in the same app), and disabling exceptions makes it behave
differently than std::format/print.

So let's stop doing this and see what happens! (In main.)

Also, declutter by removing the FMT_USE_GRISU definition, which was
only meaningful for very old fmt versions that are oldest than our
minimum supported version now.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant