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

fix: allow EICrecon to compile with fmt-9.1.0 #420

Merged
merged 4 commits into from
Jan 12, 2023
Merged

Conversation

wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

While fmt-8.1.1 seems to fall back to ostream operators for types without a formatter specialization, this does not seem to be thr case for fmt-9.1.0. This adds explicit ostream_formatters for the necessary types.

Ideally the template metaprogramming approach would be all that's needed, but it fails to work because I don't yet understand how the context should be specialized.

What kind of change does this PR introduce?

  • Bug fix (issue: compilation failure with fmt-9.1.0)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No

While fmt-8.1.1 seems to fall back to ostream operators
for types without a formatter specialization, this does
not seem to be thr case for fmt-9.1.0. This adds explicit
ostream_formatters for the necessary types.

Ideally the template metaprogramming approach would be all
that's needed, but it fails to work because I don't yet
understand how the context should be specialized.
@wdconinc wdconinc requested a review from sly2j December 30, 2022 23:32
@wdconinc
Copy link
Contributor Author

@nathanwbrei You might enjoy the sfinae question here too.

@wdconinc wdconinc enabled auto-merge January 12, 2023 01:57
@wdconinc wdconinc merged commit bd77dcc into main Jan 12, 2023
@wdconinc wdconinc deleted the spdlog-fmt-9.1.0 branch January 12, 2023 02:21
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