]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a more robust version of denoting the null pointer in this context.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 23:53:43 +0000 (23:53 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 30 Jun 2011 23:53:43 +0000 (23:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@23894 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 1d835d9cced1bb00ba034dba0f345089e434385a..6418f897c4bfb59b751a5fa487fa287e9a8c870a 100644 (file)
@@ -2181,7 +2181,7 @@ typename std::vector<T>::const_pointer
 TableBase<N,T>::data () const
 {
   if (values.size() == 0)
-    return 0;
+    return typename std::vector<T>::const_pointer();
   else
     return &values[0];
 }

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.