]> https://gitweb.dealii.org/ - dealii.git/commitdiff
enable the use of Point<0>
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 13 Sep 2010 14:34:14 +0000 (14:34 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 13 Sep 2010 14:34:14 +0000 (14:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@21944 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/point.h

index 69a0f943fefab805e92f39d6f50f1c4cbdf201f8..9daa0aea61f673465a9ac3dfbb7fe45dfac89fcf 100644 (file)
@@ -245,7 +245,7 @@ template <int dim>
 inline
 double Point<dim>::operator () (const unsigned int index) const
 {
-  Assert (index<dim, ExcIndexRange (index, 0, dim));
+  AssertIndexRange((int) index, dim);
   return this->values[index];
 }
 
@@ -255,7 +255,7 @@ template <int dim>
 inline
 double & Point<dim>::operator () (const unsigned int index)
 {
-  Assert (index<dim, ExcIndexRange (index, 0, dim));
+  AssertIndexRange((int) index, dim);
   return this->values[index];
 }
 

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.