From af0cf396828c39483899d82d91aad39dd4ddd9d0 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 22 Oct 2022 15:44:49 +0300 Subject: [PATCH] types: view default init missing --- code/espurna/types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/espurna/types.h b/code/espurna/types.h index 26e10432..f13f7ade 100644 --- a/code/espurna/types.h +++ b/code/espurna/types.h @@ -208,7 +208,11 @@ private: }; struct StringView { - StringView() noexcept = default; + constexpr StringView() noexcept : + _ptr(nullptr), + _len(0) + {} + ~StringView() = default; StringView(std::nullptr_t) = delete;