]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move default pure virtual destructor of Function 5213/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 12:49:13 +0000 (14:49 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 12:49:13 +0000 (14:49 +0200)
include/deal.II/base/function.h
include/deal.II/base/function.templates.h

index e440f82fdb57833f4a565c2d47189ba724373c38..95006ea1a17dc5ae549b57476233132ef5e6b965 100644 (file)
@@ -850,6 +850,18 @@ private:
 };
 
 
+#ifndef DOXYGEN
+// icc 2018 complains about an undefined reference
+// if we put this in the templates.h file
+//
+// The destructor is pure virtual so we can't default it
+// in the declaration.
+template <int dim, typename Number>
+inline
+Function<dim, Number>::~Function () = default;
+#endif
+
+
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
index 3621675179ac41f16586787ba81142071bae3448..834884d872cdb5925bc0d530e2a46ef3d081e6e5 100644 (file)
@@ -46,13 +46,6 @@ Function<dim, Number>::Function (const unsigned int n_components,
 
 
 
-// The destructor is pure virtual so we can't default it
-// in the declaration.
-template <int dim, typename Number>
-Function<dim, Number>::~Function () = default;
-
-
-
 template <int dim, typename Number>
 Function<dim, Number> &Function<dim, Number>::operator= (const Function &f)
 {

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.