]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a forgotten assertion.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2002 15:28:53 +0000 (15:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 11 Oct 2002 15:28:53 +0000 (15:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@6634 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/table.h

index 196f6da8948aeae424f76b781d16ef5f952a9c2c..79dadf8152ec3510c0487084036bf6e22e2814cb 100644 (file)
@@ -1550,6 +1550,7 @@ inline
 unsigned int
 TableIndicesBase<N>::operator [] (const unsigned int i) const 
 {
+  Assert (i < N, ExcIndexRange (i, 0, N));
   return indices[i];
 };
 

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.