From f76493cfe18a21b99839ea0bc399a8d5f2906421 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 17 Jun 2021 19:40:32 +0100 Subject: Mark failing branch of verify unlikely --- lib/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/helpers.h b/lib/helpers.h index 45be139..5bf1bd8 100644 --- a/lib/helpers.h +++ b/lib/helpers.h @@ -19,7 +19,7 @@ namespace MyGrate { constexpr inline auto verify(R expr, P &&... p) { - if (!expr) { + if (!expr) [[unlikely]] { throw X(std::forward

(p)...); } return expr; -- cgit v1.2.3