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

libfmt issue for cpp #75

Open
wg485733 opened this issue Oct 25, 2022 · 1 comment
Open

libfmt issue for cpp #75

wg485733 opened this issue Oct 25, 2022 · 1 comment

Comments

@wg485733
Copy link

wg485733 commented Oct 25, 2022

5d98a62

2 issues

  1. in this commit, the macro only checks for FMT_VERSION. but ostream_formatter is only introduced after fmt 9.0.0. So the generated code would fail with earlier version of fmt.

  2. think the user needs to include fmt/ostream.h header file for this to work? while FMT_VERSION is defined in fmt/core.h, so it's worth mentioning that user should include fmt/ostream.h if she already includes fmt/core.h

chronoxor added a commit that referenced this issue Oct 26, 2022
@chronoxor
Copy link
Owner

  1. Fixed with #if defined(FMT_VERSION) && (FMT_VERSION >= 90000) check. Earlier {fmt} versions are not supported anymore
  2. Corresponding README.md section is updated

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

No branches or pull requests

2 participants