Skip to content

Commit bf25a09

Browse files
committed
Squashed 'src/minisketch/' changes from d1e6bb8bbf..ea8f66b1ea
ea8f66b1ea Merge bitcoin-core/minisketch#89: header: Delete default Minisketch constructor fc24958646 Merge bitcoin-core/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
1 parent f5d8b66 commit bf25a09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/minisketch.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ MINISKETCH_API void minisketch_serialize(const minisketch* sketch, unsigned char
115115
MINISKETCH_API void minisketch_deserialize(minisketch* sketch, const unsigned char* input);
116116

117117
/** Add an element to a sketch.
118-
*
118+
*
119119
* If the element to be added is too large for the sketch, the most significant
120120
* bits of the element are dropped. More precisely, if the element size of
121121
* `sketch` is b bits, then this function adds the unsigned integer represented
122122
* by the b least significant bits of `element` to `sketch`.
123-
*
123+
*
124124
* If the element to be added is 0 (after potentially dropping the most significant
125125
* bits), then this function is a no-op. Sketches cannot contain an element with
126126
* the value 0.
@@ -248,8 +248,8 @@ class Minisketch
248248
/** Check whether this Minisketch object is valid. */
249249
explicit operator bool() const noexcept { return bool{m_minisketch}; }
250250

251-
/** Construct an (invalid) Minisketch object. */
252-
Minisketch() noexcept = default;
251+
/** Default constructor is deleted. */
252+
Minisketch() noexcept = delete;
253253

254254
/** Move constructor. */
255255
Minisketch(Minisketch&&) noexcept = default;

0 commit comments

Comments
 (0)