TheAlgorithms / C-Plus-Plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
https://thealgorithms.github.io/C-Plus-Plus
MIT License
29.7k stars 7.05k forks source link

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

Open yurivict opened 3 months ago

yurivict commented 3 months ago

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

github-actions[bot] commented 2 months ago

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.

yurivict commented 2 months ago

not stale