From e4f62483ff8ac384b11a7e1290c8e8b7559d7901 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Sep 2017 12:59:31 +0200 Subject: [PATCH] util/StringView: add default constructors It was implicitly deleted since commit db23c2f27b3df1e1ace4f0301a67519f6c5e9047 --- src/util/StringView.hxx | 1 + src/util/TStringView.hxx | 2 ++ src/util/WStringView.hxx | 1 + 3 files changed, 4 insertions(+) diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index 903870edf..ecf6ed82a 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -113,6 +113,7 @@ struct BasicStringView : ConstBuffer { struct StringView : BasicStringView { using BasicStringView::BasicStringView; + StringView() = default; constexpr StringView(BasicStringView src) noexcept :BasicStringView(src) {} }; diff --git a/src/util/TStringView.hxx b/src/util/TStringView.hxx index fd8a3bf42..ccfee8cd3 100644 --- a/src/util/TStringView.hxx +++ b/src/util/TStringView.hxx @@ -36,6 +36,7 @@ struct TStringView : WStringView { using WStringView::WStringView; + TStringView() = default; constexpr TStringView(WStringView src) noexcept :WStringView(src) {} }; @@ -46,6 +47,7 @@ struct TStringView : WStringView { struct TStringView : StringView { using StringView::StringView; + TStringView() = default; constexpr TStringView(StringView src) noexcept :StringView(src) {} }; diff --git a/src/util/WStringView.hxx b/src/util/WStringView.hxx index 4be668ade..5ae8f7e25 100644 --- a/src/util/WStringView.hxx +++ b/src/util/WStringView.hxx @@ -35,6 +35,7 @@ struct WStringView : BasicStringView { using BasicStringView::BasicStringView; + WStringView() = default; constexpr WStringView(BasicStringView src) noexcept :BasicStringView(src) {} };