diff --git a/src/ipc.cpp b/src/ipc.cpp index 00f2bc1..e5904ca 100644 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -115,7 +115,7 @@ std::vector recv(handle_t h) { if (!queue->connected()) { queue->connect(); } - static thread_local std::unordered_map> all; + static thread_local std::unordered_map> all; do { auto msg = queue->pop(); // here comes a new message @@ -134,7 +134,7 @@ std::vector recv(handle_t h) { // finish this message, erase it from cache auto ret { std::move(cache) }; all.erase(msg.id_); - return std::move(ret); + return ret; } } while(1); }