From bf25a0918f94524bda8e8fb7505d68a772e88b45 Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 13 May 2025 18:07:47 +0100 Subject: [PATCH] Squashed 'src/minisketch/' changes from d1e6bb8bbf..ea8f66b1ea ea8f66b1ea Merge sipa/minisketch#89: header: Delete default Minisketch constructor fc24958646 Merge sipa/minisketch#94: misc: trim trailing whitespace 485b16e7ff misc: trim trailing whitespace 5cc7d20866 header: Delete default Minisketch constructor git-subtree-dir: src/minisketch git-subtree-split: ea8f66b1eabb0388d221daaa4706120a5083da0c --- include/minisketch.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/minisketch.h b/include/minisketch.h index b0571d2788e..f222f2338c3 100644 --- a/include/minisketch.h +++ b/include/minisketch.h @@ -115,12 +115,12 @@ MINISKETCH_API void minisketch_serialize(const minisketch* sketch, unsigned char MINISKETCH_API void minisketch_deserialize(minisketch* sketch, const unsigned char* input); /** Add an element to a sketch. - * + * * If the element to be added is too large for the sketch, the most significant * bits of the element are dropped. More precisely, if the element size of * `sketch` is b bits, then this function adds the unsigned integer represented * by the b least significant bits of `element` to `sketch`. - * + * * If the element to be added is 0 (after potentially dropping the most significant * bits), then this function is a no-op. Sketches cannot contain an element with * the value 0. @@ -248,8 +248,8 @@ public: /** Check whether this Minisketch object is valid. */ explicit operator bool() const noexcept { return bool{m_minisketch}; } - /** Construct an (invalid) Minisketch object. */ - Minisketch() noexcept = default; + /** Default constructor is deleted. */ + Minisketch() noexcept = delete; /** Move constructor. */ Minisketch(Minisketch&&) noexcept = default;