summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-09-13 12:59:31 +0200
committerMax Kellermann <max@musicpd.org>2017-09-13 12:59:31 +0200
commite4f62483ff8ac384b11a7e1290c8e8b7559d7901 (patch)
treef89402a44922962ff09cc6651b10d5c11621bd73 /src/util
parent8d9347edc51788f9460c50a4b166b8f2d35732d9 (diff)
util/StringView: add default constructors
It was implicitly deleted since commit db23c2f27b3df1e1ace4f0301a67519f6c5e9047
Diffstat (limited to 'src/util')
-rw-r--r--src/util/StringView.hxx1
-rw-r--r--src/util/TStringView.hxx2
-rw-r--r--src/util/WStringView.hxx1
3 files changed, 4 insertions, 0 deletions
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<T> {
struct StringView : BasicStringView<char> {
using BasicStringView::BasicStringView;
+ StringView() = default;
constexpr StringView(BasicStringView<value_type> 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<wchar_t> {
using BasicStringView::BasicStringView;
+ WStringView() = default;
constexpr WStringView(BasicStringView<value_type> src) noexcept
:BasicStringView(src) {}
};