diff --git a/Adapter.cc b/Adapter.cc index 18b86e4..6f1df95 100644 --- a/Adapter.cc +++ b/Adapter.cc @@ -152,6 +152,6 @@ namespace pEp { return false; else return true; - } + } } } diff --git a/pc_container.hh b/pc_container.hh index b3b13d8..f470b92 100644 --- a/pc_container.hh +++ b/pc_container.hh @@ -7,6 +7,7 @@ // that holds references to all changed elements #include +#include #include "locked_queue.hh" namespace pEp @@ -17,7 +18,7 @@ enum class PC_State { Illegal = 0, Created = 1, Deleted = 2, Changed = 3 }; // Producer/Consumer container. // -// The "Producer" works on a std::deque: inserts, changes, erases elements and +// The "Producer" works on a std::list: inserts, changes, erases elements and // informs a "Consumer" via a queue about the changes. // // The "Consumer" can poll for changes and process them asynchronously. @@ -36,7 +37,7 @@ public: PC_State state() const noexcept { return PC_State((pdata!=nullptr) + (cdata!=nullptr)*2); } }; - typedef std::deque Container; + typedef std::list Container; typename Container::const_iterator cbegin() const noexcept { return c.cbegin(); } typename Container::const_iterator cend() const noexcept { return c.cend(); }