]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix clang 3.9.1 linker error 3709/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 24 Dec 2016 12:32:04 +0000 (13:32 +0100)
committerTimo Heister <timo.heister@gmail.com>
Sat, 24 Dec 2016 12:32:04 +0000 (13:32 +0100)
clang 3.9.1 complains about

undefined reference to `non-virtual thunk to
dealii::LinearAlgebra::Vector<double>::mean_value() const'

Work around it by using a different typedef for the return value.

fixes #3708

include/deal.II/lac/la_vector.h
include/deal.II/lac/la_vector.templates.h

index ea1c083abb7301dddcf746e5bf69d16b7521e5b6..3894119dfd9a556afb3e0a4ed12f58c920768ff9 100644 (file)
@@ -176,7 +176,7 @@ namespace LinearAlgebra
     /**
      * Return the mean value of all the entries of this vector.
      */
-    virtual typename VectorSpaceVector<Number>::value_type mean_value() const;
+    virtual value_type mean_value() const;
 
     /**
      * Return the l<sub>1</sub> norm of the vector (i.e., the sum of the
index d109eb4e337d4655640da5fabeb3eac673d2c019..d9430dc62cd6bcb58e49e2f129033ee3d3398068 100644 (file)
@@ -283,7 +283,7 @@ namespace LinearAlgebra
 
 
   template <typename Number>
-  typename VectorSpaceVector<Number>::value_type Vector<Number>::mean_value() const
+  typename Vector<Number>::value_type Vector<Number>::mean_value() const
   {
     Assert (this->size(), ExcEmptyObject());
 

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.