diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-05-24 11:23:39 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-05-24 11:23:39 +0100 |
commit | a49c2d0b55569ba6ad9f9d324343b2ae5bee236f (patch) | |
tree | ba6cd16379fc527fba5c124d2892c860636c6e2d | |
parent | Modernize and tidy (diff) | |
download | libdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.tar.bz2 libdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.tar.xz libdbpp-a49c2d0b55569ba6ad9f9d324343b2ae5bee236f.zip |
Blob should actually be implicitly constructible from a vector
-rw-r--r-- | libdbpp/dbTypes.h | 3 |
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()) { |