From: Wolfgang Bangerth Date: Mon, 19 Feb 2001 09:58:23 +0000 (+0000) Subject: Add additional implementation of constructor that is not allowed in 2d. X-Git-Tag: v8.0.0~19716 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=178e7e78a86bacbdc1ea9a0ca753c3d70c3da740;p=dealii.git 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 --- 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()); };