From: Matthias Maier Date: Mon, 20 Apr 2015 06:58:01 +0000 (+0200) Subject: Do not repeat template default arguments X-Git-Tag: v8.3.0-rc1~236^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5feeed063be153f051fa941049a32c37ba9f68a;p=dealii.git 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 --- 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;