summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:11:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:11:48 +0100
commit6b36b5c620cdde18468a4bddb4ba62a6db7f6829 (patch)
treebc65e5d0e589088b7779650d94858ef0155397b4
parentLoad schema and config etc from target DB (diff)
downloadmygrate-6b36b5c620cdde18468a4bddb4ba62a6db7f6829.tar.bz2
mygrate-6b36b5c620cdde18468a4bddb4ba62a6db7f6829.tar.xz
mygrate-6b36b5c620cdde18468a4bddb4ba62a6db7f6829.zip
Fix passing multiple params to verify exception
-rw-r--r--lib/helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.h b/lib/helpers.h
index d2584d0..17c60dc 100644
--- a/lib/helpers.h
+++ b/lib/helpers.h
@@ -20,7 +20,7 @@ namespace MyGrate {
verify(bool expr, P &&... p)
{
if (!expr) {
- throw X(std::forward<P...>(p)...);
+ throw X(std::forward<P>(p)...);
}
}