]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change the way the constructor template argument works.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Jan 2019 16:25:31 +0000 (09:25 -0700)
committerGiovanni Alzetta <giovannialzetta@hotmail.it>
Thu, 31 Jan 2019 13:12:22 +0000 (14:12 +0100)
include/deal.II/base/point.h

index 38a87c6f24f44cbca0ca75b754206b82d6bc925e..d486ae36c85865c1087e8cf70e64187e429f8104 100644 (file)
@@ -148,9 +148,9 @@ public:
   /**
    * Convert a boost::geometry::point to a dealii::Point.
    */
-  template <int dummy_dim = dim>
+  template <int dummy_dim>
   Point(const boost::geometry::model::
-          point<Number, dim, boost::geometry::cs::cartesian> &boost_pt,
+          point<Number, dummy_dim, boost::geometry::cs::cartesian> &boost_pt,
         typename std::enable_if<(dim == dummy_dim) && (dummy_dim != 0),
                                 int>::type = 0);
 
@@ -374,7 +374,7 @@ template <int dim, typename Number>
 template <int dummy_dim>
 inline Point<dim, Number>::Point(
   const boost::geometry::model::
-    point<Number, dim, boost::geometry::cs::cartesian> &boost_pt,
+    point<Number, dummy_dim, boost::geometry::cs::cartesian> &boost_pt,
   typename std::enable_if<(dim == dummy_dim) && (dummy_dim != 0), int>::type)
 {
   Assert(dim <= 3, ExcNotImplemented());

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.