aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-18 10:21:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-18 10:21:50 +0200
commitd29314608fe083be54f5ba8c86b0c22cf1814f3d (patch)
tree040dfe0754f92237666b5c82dcfeeec15e64601c /butl
parent7103e19daf217640f2eda1d6ae1c4be972cd495b (diff)
Add vector_view(vector_view<T1>) constructor
Diffstat (limited to 'butl')
-rw-r--r--butl/vector-view4
1 files changed, 4 insertions, 0 deletions
diff --git a/butl/vector-view b/butl/vector-view
index c0cc433..fdff783 100644
--- a/butl/vector-view
+++ b/butl/vector-view
@@ -48,6 +48,10 @@ namespace butl
vector_view (const std::vector<T1, A>& v)
: data_ (v.data ()), size_ (v.size ()) {}
+ template <typename T1>
+ vector_view (const vector_view<T1>& v)
+ : data_ (v.data ()), size_ (v.size ()) {}
+
vector_view (vector_view&&) = default;
vector_view (const vector_view&) = default;
vector_view& operator= (vector_view&&) = default;