From a49c2d0b55569ba6ad9f9d324343b2ae5bee236f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 May 2020 11:23:39 +0100 Subject: Blob should actually be implicitly constructible from a vector --- libdbpp/dbTypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdbpp/dbTypes.h b/libdbpp/dbTypes.h index 7f6dc5e..6589784 100644 --- a/libdbpp/dbTypes.h +++ b/libdbpp/dbTypes.h @@ -22,7 +22,8 @@ namespace DB { } /// Construct a reference using C++ vector pointer to a collection of objects. template - explicit Blob(const std::vector & v) : + // NOLINTNEXTLINE(hicpp-explicit-conversions) + Blob(const std::vector & v) : data(&v.front()), len(sizeof(T) * v.size()) { -- cgit v1.2.3