fixed compilation errors

This commit is contained in:
Paolo Monteverde 2016-11-30 10:02:10 +01:00
parent dd1f45ea19
commit 898746151e

View File

@ -143,7 +143,7 @@ class StreamHandle: public Handle<T, U> {
static void readCallback(uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf) {
T &ref = *(static_cast<T*>(handle->data));
// data will be destroyed no matter of what the value of nread is
std::unique_ptr<const char[]> data{buf->base};
std::unique_ptr<char[]> data{buf->base};
if(nread == UV_EOF) {
// end of stream