From 6b83b6b31e7a25a3b067adadb2870a97e612243a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 10 Dec 2020 19:30:46 +0000 Subject: Suppress noExplicitConstructor, blobs should be easy to create --- libdbpp/dbTypes.h | 1 + 1 file changed, 1 insertion(+) 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 explicit Blob(const T * t) : data(t), len(sizeof(T)) { } /// Construct a reference using C++ vector pointer to a collection of objects. template + // cppcheck-suppress noExplicitConstructor // NOLINTNEXTLINE(hicpp-explicit-conversions) Blob(const std::vector & v) : data(&v.front()), len(sizeof(T) * v.size()) { -- cgit v1.2.3