From: Matthias Maier Date: Mon, 7 Sep 2015 01:28:14 +0000 (-0500) Subject: Bugfix: Remove ambiguity. X-Git-Tag: v8.4.0-rc2~466^2~14 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355ef57551edb89756d2a0023e774c7fd047a806;p=dealii.git Bugfix: Remove ambiguity. With the rest of Tensor<0,dim,Number>'s interface this operator= is redundant. --- diff --git a/include/deal.II/base/tensor_base.h b/include/deal.II/base/tensor_base.h index 24fa78fded..9812c8341b 100644 --- a/include/deal.II/base/tensor_base.h +++ b/include/deal.II/base/tensor_base.h @@ -176,11 +176,6 @@ public: template Tensor<0,dim,Number> &operator = (const Tensor<0,dim,OtherNumber> &rhs); - /** - * Assignment operator. - */ - Tensor<0,dim,Number> &operator = (const Number d); - /** * Test for equality of two tensors. */ @@ -689,17 +684,6 @@ Tensor<0,dim,Number> &Tensor<0,dim,Number>::operator = (const Tensor<0,dim,Other } -template -inline -Tensor<0,dim,Number> &Tensor<0,dim,Number>::operator = (const Number d) -{ - Assert(dim != 0 || d == OtherNumber(), - ExcMessage("Cannot assign a non-zero scalar to a Tensor<0,0,Number> object.")); - value = d; - return *this; -} - - template template inline