mirror of
https://github.com/matrix-construct/construct
synced 2024-06-11 22:48:56 +02:00
ircd::vector_view: Add constructor for reasonable implicit const conversion of value_type.
This commit is contained in:
parent
acbbb08d3c
commit
83e1bcd17b
|
@ -116,6 +116,11 @@ struct ircd::vector_view
|
|||
:vector_view(array.data(), array.size())
|
||||
{}
|
||||
|
||||
// Required for reasonable implicit const conversion of value_type.
|
||||
vector_view(const vector_view<typename std::remove_const<value_type>::type> &v)
|
||||
:vector_view(v.data(), v.size())
|
||||
{}
|
||||
|
||||
vector_view() = default;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue