Skip to content

Commit

Permalink
Fix for gcc-13 build (#670)
Browse files Browse the repository at this point in the history
* Fix for gcc-13 build

Added explicit #include <cstdint> to enable builds with newer compiler.

* Update log_stream.h

Update to std::uncaught_exceptions
  • Loading branch information
heshpdx authored Feb 27, 2023
1 parent ddc1995 commit 109d70c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/MemoryPool/MemoryPool.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef MEMORY_BLOCK_TCC
#define MEMORY_BLOCK_TCC


#include <cstdint>

template <typename T, size_t BlockSize>
inline typename MemoryPool<T, BlockSize>::size_type
Expand Down
4 changes: 2 additions & 2 deletions src/util/log_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct task_timer
{}
~task_timer()
{
if (!std::uncaught_exception())
if (!std::uncaught_exceptions())
finish();
}
void go(const char* msg = nullptr)
Expand Down Expand Up @@ -144,4 +144,4 @@ struct task_timer
std::chrono::high_resolution_clock::time_point t;
};

void exit_with_error(const std::exception& e);
void exit_with_error(const std::exception& e);

0 comments on commit 109d70c

Please sign in to comment.