compile errors

This commit is contained in:
mutouyun 2018-12-19 16:49:30 +08:00
parent 4dfefb03ae
commit 238166bdc1
3 changed files with 6 additions and 6 deletions

View File

@ -141,8 +141,8 @@ public:
} }
T pop() { T pop() {
return pop(multi_wait_for([this] { return pop(multi_wait_for([que = this] {
return std::make_tuple(&this, 1); return std::make_tuple(&que, 1);
})); }));
} }
}; };

View File

@ -101,15 +101,15 @@ std::size_t channel::recv_count() const {
return 0; return 0;
} }
bool channel::send(void const *data, std::size_t size) { bool channel::send(void const * /*data*/, std::size_t /*size*/) {
return false; return false;
} }
bool channel::send(buff_t const & buff) { bool channel::send(buff_t const & /*buff*/) {
return false; return false;
} }
bool channel::send(std::string const & str) { bool channel::send(std::string const & /*str*/) {
return false; return false;
} }

View File

@ -187,7 +187,7 @@ buff_t recv(handle_t const * hs, std::size_t size) {
return {}; return {};
} }
return updating_recv([&] { return updating_recv([&] {
return std::forward_as_tuple(q_arr, q_arr.size()); return std::make_tuple(q_arr.data(), q_arr.size());
}); });
} }