]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert "Default copy assignement in Tensor for non-Intel compilers" 6482/head
authorMatthias Maier <tamiko@43-1.org>
Sat, 5 May 2018 18:31:21 +0000 (13:31 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 5 May 2018 18:31:21 +0000 (13:31 -0500)
This reverts commit b509e726018ba3c8689158f0606867664039416e.

include/deal.II/base/tensor.h

index 7efa87812084d37d4b4f72ef4877b420c7cdb427..03c1591688c587b51b27809f2586a50330e860f4 100644 (file)
@@ -212,13 +212,7 @@ public:
   /**
    * Assignment from tensors with same underlying scalar type.
    */
-#ifdef __INTEL_COMPILER
   Tensor &operator = (const Tensor<0,dim,Number> &rhs);
-  // ICC 15 doesn't allow this copy constructor to be defaulted.
-  // see https://github.com/dealii/dealii/pull/5865.
-#else
-  Tensor &operator = (const Tensor<0,dim,Number> &rhs) = default;
-#endif
 
   /**
    * This operator assigns a scalar to a tensor. This obviously requires
@@ -819,7 +813,6 @@ Tensor<0,dim,Number> &Tensor<0,dim,Number>::operator = (const Tensor<0,dim,Other
 }
 
 
-#ifdef __INTEL_COMPILER
 template <int dim, typename Number>
 inline
 Tensor<0,dim,Number> &Tensor<0,dim,Number>::operator = (const Tensor<0,dim,Number> &p)
@@ -827,7 +820,6 @@ Tensor<0,dim,Number> &Tensor<0,dim,Number>::operator = (const Tensor<0,dim,Numbe
   value = p.value;
   return *this;
 }
-#endif
 
 
 template <int dim, typename Number>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.