From: guido Date: Sun, 19 Sep 2004 21:30:59 +0000 (+0000) Subject: better handling of const vectors X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e936d7995b9f58bc65e1616847951cf7321ff473;p=dealii-svn.git better handling of const vectors git-svn-id: https://svn.dealii.org/trunk@9640 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/vector_slice.h b/deal.II/base/include/base/vector_slice.h index 0746cc563e..9a54fa84ee 100644 --- a/deal.II/base/include/base/vector_slice.h +++ b/deal.II/base/include/base/vector_slice.h @@ -67,10 +67,10 @@ class VectorSlice */ template inline -const VectorSlice +const VectorSlice make_slice (VECTOR& v) { - const VectorSlice r(v); + const VectorSlice r(v); return r; } @@ -85,10 +85,10 @@ make_slice (VECTOR& v) */ template inline -const VectorSlice +const VectorSlice make_slice (VECTOR& v, unsigned int start, unsigned int length) { - const VectorSlice r(v, start, length); + const VectorSlice r(v, start, length); return r; }