From 8386809c446ad21eb5d7d4c371ac1a7a3ee14b9c Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 15 Apr 2024 17:19:26 -0700 Subject: [PATCH] math/the-algorithms-c++: Add workaround for compilation failure on 15-CURRENT Reported by: fallout --- .../patch-data__structures_queue__using__array2.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 math/the-algorithms-c++/files/patch-data__structures_queue__using__array2.cpp diff --git a/math/the-algorithms-c++/files/patch-data__structures_queue__using__array2.cpp b/math/the-algorithms-c++/files/patch-data__structures_queue__using__array2.cpp new file mode 100644 index 000000000000..348109bea1af --- /dev/null +++ b/math/the-algorithms-c++/files/patch-data__structures_queue__using__array2.cpp @@ -0,0 +1,13 @@ +- workaround for https://github.com/TheAlgorithms/C-Plus-Plus/issues/2690 + +--- data_structures/queue_using_array2.cpp.orig 2024-04-15 23:52:35 UTC ++++ data_structures/queue_using_array2.cpp +@@ -1,6 +1,8 @@ using namespace std; + #include + using namespace std; + ++#define queue queue_ ++ + int queue[10]; + int front = 0; + int rear = 0;