From a8cce9e7e91b888263eb4441816aab16e9ffae45 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 26 Apr 2018 14:37:10 +0200 Subject: [PATCH] Modified for TravisCI --- src/compress.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compress.cc b/src/compress.cc index 924660b..f928b49 100644 --- a/src/compress.cc +++ b/src/compress.cc @@ -9,7 +9,6 @@ #include #include #include -#include #include #ifdef Debug @@ -109,8 +108,8 @@ void compress(const std::string &t_in_file, const char *t_out_file) { while (input_file.read(chunk.data(), static_cast(chunk.size()))) { threads.emplace_back(nullptr, uvec{}); - threads.back().first = std::make_unique( - std::thread{lzw_compress, chunk, ref(threads.back().second)}); + threads.back().first = std::unique_ptr( + new std::thread{lzw_compress, chunk, ref(threads.back().second)}); assert(threads.back().first); if (threads.size() >= 8) { join_and_write(threads, out);