diff options
author | Max Kellermann <max@musicpd.org> | 2017-09-13 12:59:31 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-09-13 12:59:31 +0200 |
commit | e4f62483ff8ac384b11a7e1290c8e8b7559d7901 (patch) | |
tree | f89402a44922962ff09cc6651b10d5c11621bd73 /src/util | |
parent | 8d9347edc51788f9460c50a4b166b8f2d35732d9 (diff) |
util/StringView: add default constructors
It was implicitly deleted since commit
db23c2f27b3df1e1ace4f0301a67519f6c5e9047
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/StringView.hxx | 1 | ||||
-rw-r--r-- | src/util/TStringView.hxx | 2 | ||||
-rw-r--r-- | src/util/WStringView.hxx | 1 |
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) {} }; |