diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index 0bc8cdfab..714271de0 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -44,6 +44,12 @@ struct BasicStringView : ConstBuffer { BasicStringView() = default; + explicit constexpr BasicStringView(ConstBuffer src) + :ConstBuffer(src) {} + + explicit constexpr BasicStringView(ConstBuffer src) + :ConstBuffer(ConstBuffer::FromVoid(src)) {} + constexpr BasicStringView(pointer_type _data, size_type _size) noexcept :ConstBuffer(_data, _size) {}