]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer.h: Add empty constructor to contigous_filler
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 10 Mar 2025 12:02:48 +0000 (12:02 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Fri, 28 Mar 2025 16:06:02 +0000 (16:06 +0000)
This is useful to have ability to create a contigous_filler variable.
Otherwise one needs std::optional<>.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/include/buffer.h

index d8f4f306cc38df14a5cfc2e37887170dd0c3cd6b..c63a1847dcfca1a06ceee20f1205e8e88c2a85b7 100644 (file)
@@ -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;
       }