Skip to content

Commit 5cc7d20

Browse files
committed
header: Delete default Minisketch constructor
It is not used and trying to use one of its methods will cause a segfault.
1 parent 3387044 commit 5cc7d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/minisketch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)