diff --git a/autogit/include/autogit/logging.hpp b/autogit/include/autogit/logging.hpp index b37e893b..e01c22cd 100644 --- a/autogit/include/autogit/logging.hpp +++ b/autogit/include/autogit/logging.hpp @@ -215,7 +215,8 @@ namespace logging_compress__ { FILE* in = fopen(infile.c_str(), "rb"); if (!in) return false; - std::unique_ptr FILE_closer(in, &fclose); + using FileCloserType = int (*)(FILE*); + std::unique_ptr FILE_closer(in, &fclose); std::unique_ptr bufs(new char[LOGGING_GZ_BUFLEN]); char* buf = bufs.get();