From 567cbb9f1bd7ae8d37a3fd7adc2d903eb23f1506 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 21 Jan 2023 01:20:54 +0000 Subject: [PATCH] test: include deque MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit boost 1.81.0 requires deque to be included directly: x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../src/config -I. -I./obj -I/usr/include/db5.3/ -pthread -I/usr/include -I./leveldb/include -I./leveldb/helpers/memenv -I./secp256k1/include -I./test/ -DBOOST_TEST_DYN_LINK -I/usr/include/db5.3 -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -march=native -O2 -pipe -fomit-frame-pointer -c -o test/test_dogecoin-cuckoocache_tests.o `test -f 'test/cuckoocache_tests.cpp' || echo './'`test/cuckoocache_tests.cpp test/cuckoocache_tests.cpp: In function ‘void cuckoocache_tests::test_cache_generations()’: test/cuckoocache_tests.cpp:359:10: error: ‘deque’ is not a member of ‘std’ 359 | std::deque last_few; | ^~~~~ test/cuckoocache_tests.cpp:9:1: note: ‘std::deque’ is defined in header ‘’; did you forget to ‘#include ’? 8 | #include +++ |+#include 9 | #include test/cuckoocache_tests.cpp:359:30: error: expected primary-expression before ‘>’ token 359 | std::deque last_few; | ^ test/cuckoocache_tests.cpp:359:32: error: ‘last_few’ was not declared in this scope 359 | std::deque last_few; | ^~~~~~~~ make[2]: *** [Makefile:9046: test/test_dogecoin-cuckoocache_tests.o] Error 1 --- src/test/cuckoocache_tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/cuckoocache_tests.cpp b/src/test/cuckoocache_tests.cpp index 00446aa11e13..e7c305341fae 100644 --- a/src/test/cuckoocache_tests.cpp +++ b/src/test/cuckoocache_tests.cpp @@ -6,6 +6,7 @@ #include "test/test_bitcoin.h" #include "random.h" #include +#include #include