summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:30:46 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 19:30:46 +0000
commit6b83b6b31e7a25a3b067adadb2870a97e612243a (patch)
treef6112b976e1ab42980ef3781b5a851a620857bd2
parentInitialise drop variable (diff)
downloadlibdbpp-6b83b6b31e7a25a3b067adadb2870a97e612243a.tar.bz2
libdbpp-6b83b6b31e7a25a3b067adadb2870a97e612243a.tar.xz
libdbpp-6b83b6b31e7a25a3b067adadb2870a97e612243a.zip
Suppress noExplicitConstructor, blobs should be easy to create
-rw-r--r--libdbpp/dbTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbpp/dbTypes.h b/libdbpp/dbTypes.h
index ba79b06..5fd0e7b 100644
--- a/libdbpp/dbTypes.h
+++ b/libdbpp/dbTypes.h
@@ -17,6 +17,7 @@ namespace DB {
template<typename T> explicit Blob(const T * t) : data(t), len(sizeof(T)) { }
/// Construct a reference using C++ vector pointer to a collection of objects.
template<typename T>
+ // cppcheck-suppress noExplicitConstructor
// NOLINTNEXTLINE(hicpp-explicit-conversions)
Blob(const std::vector<T> & v) : data(&v.front()), len(sizeof(T) * v.size())
{