Skip to content

int: No longer force disabling of fmt exceptions#5118

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-fmtxcpt
Apr 11, 2026
Merged

int: No longer force disabling of fmt exceptions#5118
lgritz merged 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>
@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 4, 2026

Any opinions on this?

@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented Apr 8, 2026

If there are no objections forthcoming, I will merge this (main only, for now) by the end of the week.

@lgritz lgritz merged commit d55f7b1 into AcademySoftwareFoundation:main Apr 11, 2026
31 checks passed
@lgritz lgritz deleted the lg-fmtxcpt branch April 11, 2026 04:18
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