Skip to content

Fix std.h/ranges.h ambiguity for optional in c++26 (fmtlib#4760)#4762

Closed
indiosmo wants to merge 1 commit intofmtlib:mainfrom
indiosmo:main
Closed

Fix std.h/ranges.h ambiguity for optional in c++26 (fmtlib#4760)#4762
indiosmo wants to merge 1 commit intofmtlib:mainfrom
indiosmo:main

Conversation

@indiosmo
Copy link
Copy Markdown

C++26 adds range support for std::optional which causes ambiguity when including both fmt/std.h and fmt/ranges.h.

This PR specifically disables optional in fmt/ranges.h

See #4760 .

@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented May 3, 2026

Closing in favor of #4761 but thanks for the PR!

@vitaut vitaut closed this May 3, 2026
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.

2 participants