Skip to content

Fix conflict with std::ignore - #4356

Merged
vitaut merged 1 commit into
fmtlib:masterfrom
dinomight:fix-ignore
Feb 20, 2025
Merged

Fix conflict with std::ignore#4356
vitaut merged 1 commit into
fmtlib:masterfrom
dinomight:fix-ignore

Conversation

@dinomight

Copy link
Copy Markdown
Contributor

In situations where using namespace std; is used, compiler warnings can be generated because of local variables named ignore. This renames those variables to something else to address the name conflict.

#4302

In situations where `using namespace std;` is used, compiler warnings
can be generated because of local variables named `ignore`. This renames
those variables to something else to address the name conflict.
@vitaut
vitaut merged commit 7f76955 into fmtlib:master Feb 20, 2025
@vitaut

vitaut commented Feb 20, 2025

Copy link
Copy Markdown
Contributor

Thinking more of it, I'm willing to accept this PR because the proposed name is actually better. But for similar issues in the future you'll need to provide a repro demonstrating that the problem is worth solving.

@dinomight
dinomight deleted the fix-ignore branch February 21, 2025 01:16
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