From b15b862d864a2d9dab634d49491b9b14ad7180f3 Mon Sep 17 00:00:00 2001 From: Evgeny Proydakov Date: Thu, 20 May 2021 19:30:45 +0300 Subject: [PATCH] Fixed noexcept benchmark build for gcc. --- include/internal/benchmark/detail/catch_run_for_at_least.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/benchmark/detail/catch_run_for_at_least.hpp b/include/internal/benchmark/detail/catch_run_for_at_least.hpp index 339507ba..f63d2b1f 100644 --- a/include/internal/benchmark/detail/catch_run_for_at_least.hpp +++ b/include/internal/benchmark/detail/catch_run_for_at_least.hpp @@ -56,7 +56,7 @@ namespace Catch { } iters *= 2; } - throw optimized_away_error{}; + Catch::throw_exception(optimized_away_error{}); } } // namespace Detail } // namespace Benchmark