diff --git a/src/lib/MemoryPool/MemoryPool.tcc b/src/lib/MemoryPool/MemoryPool.tcc index 562d958e2..f7457ca82 100644 --- a/src/lib/MemoryPool/MemoryPool.tcc +++ b/src/lib/MemoryPool/MemoryPool.tcc @@ -23,7 +23,7 @@ #ifndef MEMORY_BLOCK_TCC #define MEMORY_BLOCK_TCC - +#include template inline typename MemoryPool::size_type diff --git a/src/util/log_stream.h b/src/util/log_stream.h index d6aa61013..f89234b42 100644 --- a/src/util/log_stream.h +++ b/src/util/log_stream.h @@ -79,7 +79,7 @@ struct task_timer {} ~task_timer() { - if (!std::uncaught_exception()) + if (!std::uncaught_exceptions()) finish(); } void go(const char* msg = nullptr) @@ -144,4 +144,4 @@ struct task_timer std::chrono::high_resolution_clock::time_point t; }; -void exit_with_error(const std::exception& e); \ No newline at end of file +void exit_with_error(const std::exception& e);