summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-17 19:40:32 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-17 19:40:32 +0100
commitf76493cfe18a21b99839ea0bc399a8d5f2906421 (patch)
tree809d6df9ac97413f218ab3633862811c86fb6208 /lib
parentMake RecordSet foreach ready (diff)
downloadmygrate-f76493cfe18a21b99839ea0bc399a8d5f2906421.tar.bz2
mygrate-f76493cfe18a21b99839ea0bc399a8d5f2906421.tar.xz
mygrate-f76493cfe18a21b99839ea0bc399a8d5f2906421.zip
Mark failing branch of verify unlikely
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers.h2
1 files changed, 1 insertions, 1 deletions
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>(p)...);
}
return expr;