From: Guido Kanschat Date: Sun, 19 Sep 2004 21:30:59 +0000 (+0000) Subject: better handling of const vectors X-Git-Tag: v8.0.0~14829 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=080d63bd7fec3b85dc40acd33e42ea4ca4ddfc0d;p=dealii.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; }