From d29314608fe083be54f5ba8c86b0c22cf1814f3d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Apr 2016 10:21:50 +0200 Subject: Add vector_view(vector_view) constructor --- butl/vector-view | 4 ++++ 1 file changed, 4 insertions(+) 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& v) : data_ (v.data ()), size_ (v.size ()) {} + template + vector_view (const vector_view& v) + : data_ (v.data ()), size_ (v.size ()) {} + vector_view (vector_view&&) = default; vector_view (const vector_view&) = default; vector_view& operator= (vector_view&&) = default; -- cgit v1.1