Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with magic_enum library considering FMT_COMPILE and iterator type #4059

Closed
ArtfulVampire opened this issue Jul 8, 2024 · 1 comment
Labels

Comments

@ArtfulVampire
Copy link

Hello.
We use both fmt (10.2.1) and magic_enum libs in our project.
I want to use magic_enum_format.hpp as it provides an fmt::formatter for all enums.
But it doesn't work with FMT_COMPILE - minimal example https://godbolt.org/z/ze9eKdhq1

I suppose, there should be another iterators in compile.h instead of plain std::back_insert_iterator.

@vitaut
Copy link
Contributor

vitaut commented Jul 8, 2024

Yes, format string compilation doesn't type erase the iterator so formatter::format has to be parameterized on its type (or the context type).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants