summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-05-24 11:30:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-05-24 11:30:30 +0100
commitaa2ffdfa07570b1422cda9a7aced181ed35e8253 (patch)
tree89f11a26b821807d99a54860839acf35d4e6f94f
parentImprove and test support for traits binding of blobs (diff)
downloadlibdbpp-aa2ffdfa07570b1422cda9a7aced181ed35e8253.tar.bz2
libdbpp-aa2ffdfa07570b1422cda9a7aced181ed35e8253.tar.xz
libdbpp-aa2ffdfa07570b1422cda9a7aced181ed35e8253.zip
Improve static assertion message when a suitable binding trait doesn't existlibdbpp-1.4.4
-rw-r--r--libdbpp/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbpp/command.h b/libdbpp/command.h
index 34338eb..4820569 100644
--- a/libdbpp/command.h
+++ b/libdbpp/command.h
@@ -156,7 +156,7 @@ namespace DB {
}
}
else {
- static_assert(!&o, "No suitable trait");
+ static_assert(std::is_void_v<O>, "No suitable trait");
}
}