blob: 1cb66f835e414d5253e8c9afa8f9fecd6fc67df5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
From 567cbb9f1bd7ae8d37a3fd7adc2d903eb23f1506 Mon Sep 17 00:00:00 2001
From: Bertrand Jacquin <bertrand@jacquin.bzh>
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<block_activity> last_few;
| ^~~~~
test/cuckoocache_tests.cpp:9:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
8 | #include <thread>
+++ |+#include <deque>
9 | #include <boost/thread.hpp>
test/cuckoocache_tests.cpp:359:30: error: expected primary-expression before ‘>’ token
359 | std::deque<block_activity> last_few;
| ^
test/cuckoocache_tests.cpp:359:32: error: ‘last_few’ was not declared in this scope
359 | std::deque<block_activity> 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 <thread>
+#include <deque>
#include <boost/thread.hpp>
|