From a5feeed063be153f051fa941049a32c37ba9f68a Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 20 Apr 2015 08:58:01 +0200 Subject: [PATCH] Do not repeat template default arguments This is indeed not valid C++11 and clang is unhappy about that. Further, it works around a regression in gcc up to 4.7 that ejects a bogus error in the lambda definitions in case of partial template default arguments [1] Closes #842 [1] https://github.com/dealii/dealii/pull/843 --- include/deal.II/lac/linear_operator.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/deal.II/lac/linear_operator.h b/include/deal.II/lac/linear_operator.h index 7ee7bcda82..18fe51f05a 100644 --- a/include/deal.II/lac/linear_operator.h +++ b/include/deal.II/lac/linear_operator.h @@ -1144,9 +1144,7 @@ namespace * * @ingroup LAOperators */ -template , - typename Domain = Range, - typename Matrix> +template LinearOperator linear_operator(const Matrix &matrix) { // implement with the more generic variant below... @@ -1171,13 +1169,12 @@ LinearOperator linear_operator(const Matrix &matrix) * * @ingroup LAOperators */ -template , - typename Domain = Range, +template LinearOperator -linear_operator(const OperatorExemplar &operator_exemplar, - const Matrix &matrix) +linear_operator(const OperatorExemplar &operator_exemplar, const Matrix &matrix) { LinearOperator return_op; -- 2.39.5