Skip to content

Commit

Permalink
Check for c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Feb 27, 2023
1 parent 3511b09 commit dbd6bd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/log_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ struct task_timer
{}
~task_timer()
{
#if __cplusplus >= 201703L
if (!std::uncaught_exceptions())
#else
if (!std::uncaught_exception())
#endif
finish();
}
void go(const char* msg = nullptr)
Expand Down

0 comments on commit dbd6bd2

Please sign in to comment.