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

citnames: include fmt/ranges.h for using fmt::join() #586

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

tchaikov
Copy link
Contributor

fmt::join() was moved into fmt/ranges.h since fmt v11, so include this header for using fmt::join(). otherwise, we'd have following compilation failure when building Bear with fmt v11 and up:

/builddir/build/BUILD/bear-3.1.4-build/Bear-3.1.4/source/citnames/source/semantic/Parsers.h:255:73: error: ‘join’ is not a member of ‘fmt’
  255 |                             fmt::format("Failed to recognize: {}", fmt::join(remainder.begin(), remainder.end(), ", "))
      |                                                                         ^~~~

fmt::join() was moved into fmt/ranges.h since fmt v11, so include
this header for using fmt::join(). otherwise, we'd have following
compilation failure when building Bear with fmt v11 and up:

```
/builddir/build/BUILD/bear-3.1.4-build/Bear-3.1.4/source/citnames/source/semantic/Parsers.h:255:73: error: ‘join’ is not a member of ‘fmt’
  255 |                             fmt::format("Failed to recognize: {}", fmt::join(remainder.begin(), remainder.end(), ", "))
      |                                                                         ^~~~
```

Signed-off-by: Kefu Chai <[email protected]>
@rizsotto rizsotto merged commit 8afeafe into rizsotto:master Jul 14, 2024
14 of 17 checks passed
@rizsotto
Copy link
Owner

Thanks @tchaikov !

@tchaikov tchaikov deleted the fmt-ranges branch July 14, 2024 13:12
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