]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add user-defined constructor for Point<dim> back in 4386/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 13 May 2017 21:55:28 +0000 (23:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 13 May 2017 21:55:28 +0000 (23:55 +0200)
include/deal.II/base/point.h

index 09578ff7938a7d005933e4b9a9fff8fbb25d224c..8b20afef3b4fdcd53f37e318748bae5e05048f41 100644 (file)
@@ -93,7 +93,7 @@ public:
    * Standard constructor. Creates an object that corresponds to the origin,
    * i.e., all coordinates are set to zero.
    */
-  Point () = default;
+  Point ();
 
   /**
    * Convert a tensor to a point.
@@ -249,6 +249,15 @@ public:
 
 #ifndef DOXYGEN
 
+// At least clang-3.7 requires us to have a user-defined constructor
+// and we can't use 'Point<dim,Number>::Point () = default' here.
+template <int dim, typename Number>
+inline
+Point<dim,Number>::Point ()
+{}
+
+
+
 template <int dim, typename Number>
 inline
 Point<dim,Number>::Point (const Tensor<1,dim,Number> &t)

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.