diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-17 19:40:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-17 19:40:32 +0100 |
commit | f76493cfe18a21b99839ea0bc399a8d5f2906421 (patch) | |
tree | 809d6df9ac97413f218ab3633862811c86fb6208 /lib | |
parent | Make RecordSet foreach ready (diff) | |
download | mygrate-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.h | 2 |
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; |