Commit fe6de14f authored by Max Kellermann's avatar Max Kellermann

util/StringView: add ConstBuffer cast constructors

parent e85b9960
......@@ -44,6 +44,12 @@ struct BasicStringView : ConstBuffer<T> {
BasicStringView() = default;
explicit constexpr BasicStringView(ConstBuffer<T> src)
:ConstBuffer<T>(src) {}
explicit constexpr BasicStringView(ConstBuffer<void> src)
:ConstBuffer<T>(ConstBuffer<T>::FromVoid(src)) {}
constexpr BasicStringView(pointer_type _data, size_type _size) noexcept
:ConstBuffer<T>(_data, _size) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment