From 143084931e71e6771eb39185e8c0b88fd52c36a5 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 25 Jun 1999 16:37:24 +0000 Subject: [PATCH] Add dummy constructors for points of some dimension with parameter lists of another length. git-svn-id: https://svn.dealii.org/trunk@1474 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/point.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/deal.II/base/include/base/point.h b/deal.II/base/include/base/point.h index 9ea1ecd648..1ed8336cad 100644 --- a/deal.II/base/include/base/point.h +++ b/deal.II/base/include/base/point.h @@ -140,6 +140,10 @@ class Point : public Tensor<1,dim> { DeclException1 (ExcInvalidIndex, int, << "Invalid index " << arg1); + /** + * Exception + */ + DeclException0 (ExcInvalidConstructorCalled); }; @@ -173,6 +177,22 @@ Point<1>::Point (const double x) { +template <> +inline +Point<1>::Point (const double, const double) { + Assert (false, ExcInvalidConstructorCalled()); +}; + + + +template <> +inline +Point<1>::Point (const double, const double, const double) { + Assert (false, ExcInvalidConstructorCalled()); +}; + + + template <> inline Point<2>::Point (const double x, const double y) { @@ -182,6 +202,14 @@ Point<2>::Point (const double x, const double y) { +template <> +inline +Point<2>::Point (const double, const double, const double) { + Assert (false, ExcInvalidConstructorCalled()); +}; + + + template <> inline Point<3>::Point (const double x, const double y, const double z) { -- 2.39.5