From: guido Date: Sun, 19 Sep 2004 21:31:20 +0000 (+0000) Subject: update X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a2ad922734c16f1d22af95fb51881ade5a90855;p=dealii-svn.git update git-svn-id: https://svn.dealii.org/trunk@9641 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/slice_vector.cc b/tests/base/slice_vector.cc index 1e5ff8a148..19657fcfab 100644 --- a/tests/base/slice_vector.cc +++ b/tests/base/slice_vector.cc @@ -21,8 +21,9 @@ void f(const std::vector& v) { - const VectorSlice > s(v,2,3); - + const VectorSlice > + s = make_slice(v,2,3); + for (unsigned int i=0;i > s2(v, 3, 5); + const VectorSlice > + s2 = make_slice(v, 3, 5); int n = s[4]; n += 3; diff --git a/tests/results/i686-pc-linux-gnu+gcc3.2/base/slice_vector.output b/tests/results/i686-pc-linux-gnu+gcc3.2/base/slice_vector.output index 271b2dc929..b62a429bfa 100644 --- a/tests/results/i686-pc-linux-gnu+gcc3.2/base/slice_vector.output +++ b/tests/results/i686-pc-linux-gnu+gcc3.2/base/slice_vector.output @@ -2,8 +2,8 @@ 0 1 2 0 1 2 3 2 0 1 -------------------------------------------------------- -An error occurred in file in function - SliceVector::SliceVector(VECTOR&, unsigned int, unsigned int) [with VECTOR = std::vector >] +An error occurred in file in function + VectorSlice::VectorSlice(VECTOR&, unsigned int, unsigned int) [with VECTOR = const std::vector >] The violated condition was: (start+length<=v.size()) The name and call sequence of the exception was: @@ -13,8 +13,8 @@ Index 5 is not in [0,5[ -------------------------------------------------------- DEAL::Abort!!! -------------------------------------------------------- -An error occurred in file in function - typename VECTOR::reference SliceVector::operator[](unsigned int) [with VECTOR = std::vector >] +An error occurred in file in function + typename VECTOR::reference VectorSlice::operator[](unsigned int) [with VECTOR = std::vector >] The violated condition was: (i