From 35c1d4a54fae3f50c5498e40a33d66be6921cd7e Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 10 Mar 2025 12:02:48 +0000 Subject: [PATCH] buffer.h: Add empty constructor to contigous_filler This is useful to have ability to create a contigous_filler variable. Otherwise one needs std::optional<>. Signed-off-by: Adam Kupczyk --- src/include/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/buffer.h b/src/include/buffer.h index d8f4f306cc3..c63a1847dcf 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -834,6 +834,7 @@ struct error_code; contiguous_filler(char* const pos) : pos(pos) {} public: + contiguous_filler() : pos(nullptr) {} void advance(const unsigned len) { pos += len; } -- 2.39.5