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

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

Open
yurivict opened this issue Apr 15, 2024 · 2 comments
Open

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

yurivict opened this issue Apr 15, 2024 · 2 comments
Labels
bug stale Author has not responded to the comments for over 2 weeks

Comments

@yurivict
Copy link

Description

/wrkdirs/usr/ports/math/the-algorithms-c++/work/C-Plus-Plus-2dadbf7/data_structures/queue_using_array2.cpp:12:9: error: reference to 'queue' is ambiguous
   12 |         queue[rear++] = x;
      |         ^
/wrkdirs/usr/ports/math/the-algorithms-c++/work/C-Plus-Plus-2dadbf7/data_structures/queue_using_array2.cpp:4:5: note: candidate found by name lookup is 'queue'
    4 | int queue[10];
      |     ^
/usr/include/c++/v1/queue:301:28: note: candidate found by name lookup is 'std::queue'
  301 | class _LIBCPP_TEMPLATE_VIS queue {
      |                            ^
/wrkdirs/usr/ports/math/the-algorithms-c++/work/C-Plus-Plus-2dadbf7/data_structures/queue_using_array2.cpp:22:25: error: reference to 'queue' is ambiguous
   22 |         cout << "\n" << queue[front++] << " deleted";
      |                         ^
/wrkdirs/usr/ports/math/the-algorithms-c++/work/C-Plus-Plus-2dadbf7/data_structures/queue_using_array2.cpp:4:5: note: candidate found by name lookup is 'queue'
    4 | int queue[10];
      |     ^
/usr/include/c++/v1/queue:301:28: note: candidate found by name lookup is 'std::queue'
  301 | class _LIBCPP_TEMPLATE_VIS queue {
      |                            ^

Expected behavior

n/a

Actual behavior

See above.

Steps to reproduce

No response

Context

revision: 2dadbf7

FreeBSD 14.0

Additional information

No response

Copy link
Contributor

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label May 16, 2024
@yurivict
Copy link
Author

not stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale Author has not responded to the comments for over 2 weeks
Projects
None yet
Development

No branches or pull requests

1 participant