From 178e7e78a86bacbdc1ea9a0ca753c3d70c3da740 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 19 Feb 2001 09:58:23 +0000 Subject: [PATCH] Add additional implementation of constructor that is not allowed in 2d. git-svn-id: https://svn.dealii.org/trunk@3967 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/point.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/deal.II/base/include/base/point.h b/deal.II/base/include/base/point.h index f45abe4a79..f9f8f33cec 100644 --- a/deal.II/base/include/base/point.h +++ b/deal.II/base/include/base/point.h @@ -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()); }; -- 2.39.5