From 238166bdc1e4dbe4bfc67538dc72b14d0e03c2a5 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Wed, 19 Dec 2018 16:49:30 +0800 Subject: [PATCH] compile errors --- include/circ_queue.h | 4 ++-- src/channel.hpp | 6 +++--- src/ipc.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/circ_queue.h b/include/circ_queue.h index d97c03a..32f23d2 100644 --- a/include/circ_queue.h +++ b/include/circ_queue.h @@ -141,8 +141,8 @@ public: } T pop() { - return pop(multi_wait_for([this] { - return std::make_tuple(&this, 1); + return pop(multi_wait_for([que = this] { + return std::make_tuple(&que, 1); })); } }; diff --git a/src/channel.hpp b/src/channel.hpp index 004452c..ec47dba 100644 --- a/src/channel.hpp +++ b/src/channel.hpp @@ -101,15 +101,15 @@ std::size_t channel::recv_count() const { return 0; } -bool channel::send(void const *data, std::size_t size) { +bool channel::send(void const * /*data*/, std::size_t /*size*/) { return false; } -bool channel::send(buff_t const & buff) { +bool channel::send(buff_t const & /*buff*/) { return false; } -bool channel::send(std::string const & str) { +bool channel::send(std::string const & /*str*/) { return false; } diff --git a/src/ipc.cpp b/src/ipc.cpp index 45a9209..eb37088 100644 --- a/src/ipc.cpp +++ b/src/ipc.cpp @@ -187,7 +187,7 @@ buff_t recv(handle_t const * hs, std::size_t size) { return {}; } return updating_recv([&] { - return std::forward_as_tuple(q_arr, q_arr.size()); + return std::make_tuple(q_arr.data(), q_arr.size()); }); }