]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
icc7 doesn't like *static_cast<X*>(0).
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Apr 2003 19:36:05 +0000 (19:36 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 29 Apr 2003 19:36:05 +0000 (19:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@7496 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/boundaries.cc
tests/deal.II/error_estimator.cc

index 6c4565c2aaa9c8f8e7a12f6b53617d342d206b81..a881a4627b222be42daa4922cb6e39978fee5ded 100644 (file)
@@ -64,7 +64,8 @@ boundary_q (const DoFHandler<dim> &)
 const Quadrature<0> &
 boundary_q (const DoFHandler<1> &)
 {
-  return *static_cast<const Quadrature<0>*>(0);
+  static const Quadrature<0> *q = 0;
+  return *q;
 }
 
 
index 13dd7ed97bf37eb93cd7ff5988a87947776e4955..e6942a6e30351d3b3e36650b46df73ffc992f31a 100644 (file)
@@ -63,7 +63,8 @@ get_q_face (Function<dim>&)
 Quadrature<0> &
 get_q_face (Function<1>&)
 {
-  return *static_cast<Quadrature<0>*>(0);
+  Quadrature<0> *q = 0;
+  return *q;
 }
 
 

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.