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);