summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cqueue.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-10 20:06:14 +0200
committerTyge Løvset <[email protected]>2022-04-10 20:06:14 +0200
commit2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f (patch)
treef0298c2301594991a398fbab692bc8f1d5832ad5 /include/stc/cqueue.h
parent0500c38d693c9157e522dd7198982b9c7aeb8651 (diff)
downloadSTC-modified-2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f.tar.gz
STC-modified-2e781ef2c6956d9b4e11f08bdd23477c3b34ee2f.zip
Fixed regression bug: cqueue_pop() did pop_back(), fixed to do pop_front().
Removed pop() functions in clist and cdeq as they are no standard. push() will push_back() for both.
Diffstat (limited to 'include/stc/cqueue.h')
-rw-r--r--include/stc/cqueue.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stc/cqueue.h b/include/stc/cqueue.h
index aa3b8d2a..92cf4c49 100644
--- a/include/stc/cqueue.h
+++ b/include/stc/cqueue.h
@@ -57,5 +57,11 @@ int main() {
#define _i_prefix cqueue_
#endif
#define _i_queue
+#define _emplace_back _emplace
+#define _pop_front _pop
+
#include "cdeq.h"
+
+#undef _emplace_back
+#undef _pop_front
#undef _i_queue