From: Timo Heister 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=refs%2Fpull%2F3709%2Fhead;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::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::value_type mean_value() const; + virtual value_type mean_value() const; /** * Return the l1 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 VectorSpaceVector::value_type Vector::mean_value() const + typename Vector::value_type Vector::mean_value() const { Assert (this->size(), ExcEmptyObject());