From: Timo Heister <timo.heister@gmail.com>
Date: Sat, 24 Dec 2016 12:32:04 +0000 (+0100)
Subject: fix clang 3.9.1 linker error
X-Git-Tag: v8.5.0-rc1~312^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea0cab8dedd84cedac9adadf1040344dc5a08cb;p=dealii.git

fix clang 3.9.1 linker error

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
---

diff --git a/include/deal.II/lac/la_vector.h b/include/deal.II/lac/la_vector.h
index ea1c083abb..3894119dfd 100644
--- a/include/deal.II/lac/la_vector.h
+++ b/include/deal.II/lac/la_vector.h
@@ -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
diff --git a/include/deal.II/lac/la_vector.templates.h b/include/deal.II/lac/la_vector.templates.h
index d109eb4e33..d9430dc62c 100644
--- a/include/deal.II/lac/la_vector.templates.h
+++ b/include/deal.II/lac/la_vector.templates.h
@@ -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());