Fix Linux/macOS builds

This commit is contained in:
Tushar Maheshwari 2016-10-02 23:40:55 +05:30
parent dc0b74e07f
commit 7a68faff36
2 changed files with 3 additions and 3 deletions

View File

@ -428,13 +428,13 @@ protected:
template<typename... Args> template<typename... Args>
void cleanupAndInvoke(Args&&... args) { void cleanupAndInvoke(Args&&... args) {
uv_fs_req_cleanup(get()); uv_fs_req_cleanup(this->get());
this->invoke(std::forward<Args>(args)...); this->invoke(std::forward<Args>(args)...);
} }
template<typename F, typename... Args> template<typename F, typename... Args>
void cleanupAndInvokeSync(F &&f, Args&&... args) { void cleanupAndInvokeSync(F &&f, Args&&... args) {
uv_fs_req_cleanup(get()); uv_fs_req_cleanup(this->get());
std::forward<F>(f)(std::forward<Args>(args)..., nullptr); std::forward<F>(f)(std::forward<Args>(args)..., nullptr);
} }

View File

@ -243,7 +243,7 @@ public:
* An EndEvent event will be emitted when there is no more data to read. * An EndEvent event will be emitted when there is no more data to read.
*/ */
void read() { void read() {
this->invoke(&uv_read_start, this->template get<uv_stream_t>(), &allocCallback, &readCallback); this->invoke(&uv_read_start, this->template get<uv_stream_t>(), &this->allocCallback, &readCallback);
} }
/** /**