]> https://gitweb.dealii.org/ - dealii.git/commitdiff
update
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 19 Sep 2004 21:31:20 +0000 (21:31 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 19 Sep 2004 21:31:20 +0000 (21:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@9641 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/slice_vector.cc

index 1e5ff8a148e8256732d5807dd6edfe9d919a900b..19657fcfab28f3cc2f12337a9955063c9286b980 100644 (file)
@@ -21,8 +21,9 @@
 
 void f(const std::vector<int>& v)
 {
-  const VectorSlice<const std::vector<int> > s(v,2,3);
-
+  const VectorSlice<const std::vector<int> >
+    s = make_slice(v,2,3);
+  
   for (unsigned int i=0;i<s.size();++i)
     std::cerr << '\t' << s[i];
   std::cerr << std::endl;
@@ -75,7 +76,8 @@ int main()
 
   f(v);
 
-  VectorSlice<std::vector<int> > s2(v, 3, 5);
+  const VectorSlice<const std::vector<int> >
+    s2 = make_slice(v, 3, 5);
   int n = s[4];
   n += 3;
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.