summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-05-24 11:23:39 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-05-24 11:23:39 +0100
commita49c2d0b55569ba6ad9f9d324343b2ae5bee236f (patch)
treeba6cd16379fc527fba5c124d2892c860636c6e2d
parentModernize and tidy (diff)
downloadlibdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.tar.bz2
libdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.tar.xz
libdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.zip
Blob should actually be implicitly constructible from a vector
-rw-r--r--libdbpp/dbTypes.h3
1 files changed, 2 insertions, 1 deletions
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<typename T>
- explicit Blob(const std::vector<T> & v) :
+ // NOLINTNEXTLINE(hicpp-explicit-conversions)
+ Blob(const std::vector<T> & v) :
data(&v.front()),
len(sizeof(T) * v.size())
{