Skip to content

Fix: resolve naming ambiguity for queue array#3124

Open
AihamJandaly wants to merge 1 commit intoTheAlgorithms:masterfrom
AihamJandaly:patch-1
Open

Fix: resolve naming ambiguity for queue array#3124
AihamJandaly wants to merge 1 commit intoTheAlgorithms:masterfrom
AihamJandaly:patch-1

Conversation

@AihamJandaly
Copy link
Copy Markdown

Renamed 'queue' array to 'q_arr' and updated function names to standard naming conventions to prevent conflicts with std::queue.

Description of Change

This PR fixes a naming conflict where the global 'queue' array was ambiguous with 'std::queue'. I renamed it to 'q_arr', updated function names to lowercase (enqueue/dequeue), and added standard namespace prefixes.

Fixes #2690

Checklist

  • Added description of change
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • I acknowledge that all my contributions will be made under the project's license.

Renamed 'queue' array to 'q_arr' and updated function names to standard naming conventions to prevent conflicts with std::queue.
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.

[BUG] error: reference to 'queue' is ambiguous

1 participant