]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add additional implementation of constructor that is not allowed in 2d.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Feb 2001 09:58:23 +0000 (09:58 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 19 Feb 2001 09:58:23 +0000 (09:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@3967 0785d39b-7218-0410-832d-ea1e28bc413d

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

index f45abe4a793ede283b0847b63586419459482071..f9f8f33cec74730b3a1204820dc11cab4e6f635f 100644 (file)
@@ -210,28 +210,29 @@ Point<1>::Point (const double, const double, const double)
 };
 
 
+
 template <>
 inline
-Point<2>::Point (const double x, const double y
+Point<2>::Point (const double) 
 {
-  values[0] = x;
-  values[1] = y;
+  Assert (false, ExcInvalidConstructorCalled());
 };
 
 
 
 template <>
 inline
-Point<2>::Point (const double, const double, const double
+Point<2>::Point (const double x, const double y
 {
-  Assert (false, ExcInvalidConstructorCalled());
+  values[0] = x;
+  values[1] = y;
 };
 
 
 
 template <>
 inline
-Point<3>::Point (const double, const double) 
+Point<2>::Point (const double, const double, const double) 
 {
   Assert (false, ExcInvalidConstructorCalled());
 };

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.