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

Workaround for gcc 6 #3810

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Workaround for gcc 6 #3810

merged 1 commit into from
Jan 15, 2024

Conversation

phprus
Copy link
Contributor

@phprus phprus commented Jan 15, 2024

Fix for issue: #3809
Demo: https://godbolt.org/z/v77xfGT4f

Signed-off-by: Vladislav Shchapov <[email protected]>
@@ -179,7 +179,8 @@ For example::
struct fmt::formatter<point> : nested_formatter<double> {
auto format(point p, format_context& ctx) const {
return write_padded(ctx, [=](auto out) {
return format_to(out, "({}, {})", nested(p.x), nested(p.y));
return format_to(out, "({}, {})", this->nested(p.x),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to mention that specifying this here is only necessary when using GCC <7?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this makes sense.

@vitaut vitaut merged commit d249fd9 into fmtlib:master Jan 15, 2024
41 checks passed
@vitaut
Copy link
Contributor

vitaut commented Jan 15, 2024

Thanks for the fix!

happymonkey1 pushed a commit to happymonkey1/fmt that referenced this pull request Apr 7, 2024
Signed-off-by: Vladislav Shchapov <[email protected]>
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.

3 participants