From 7b27c1106d77f27808639336610caeaf49f5274c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 18 Apr 2024 21:13:39 +0200 Subject: Avoid using std::deque with incomplete type Only some containers are allowed by the standard to be declared with incomplete types, deque is not, for vector it is ok. --- include/erebos/message.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/erebos/message.h b/include/erebos/message.h index b52b84b..508aa23 100644 --- a/include/erebos/message.h +++ b/include/erebos/message.h @@ -4,7 +4,6 @@ #include #include -#include #include #include #include @@ -15,7 +14,6 @@ namespace erebos { using std::condition_variable; -using std::deque; using std::mutex; using std::tuple; using std::unique_ptr; @@ -160,7 +158,7 @@ private: mutex peerSyncMutex; condition_variable peerSyncCond; bool peerSyncRun; - deque> peerSyncQueue; + vector> peerSyncQueue; std::thread peerSyncThread; Watched watched; -- cgit v1.2.3