From: Wolfgang Bangerth Date: Wed, 12 Jul 2017 17:12:16 +0000 (-0600) Subject: Delete one unimplemented constructor. X-Git-Tag: v9.0.0-rc1~1425^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cac1e1c5cc8924ccf6b1073019680e5bf13ab891;p=dealii.git Delete one unimplemented constructor. While there, also let the compiler generate the default implementation for copy constructors. --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 589fdcf2fc..795dff13fb 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -312,9 +312,9 @@ namespace internal const TableIndices &previous_indices); /** - * Copy constructor. Not needed, and invisible, so private. + * Copy constructor. */ - Accessor (const Accessor &a); + Accessor (const Accessor &) = default; public: @@ -395,14 +395,14 @@ namespace internal const TableIndices &previous_indices); /** - * Default constructor. Not needed, and invisible, so private. + * Default constructor. Not needed, so deleted. */ - Accessor (); + Accessor () = delete; /** - * Copy constructor. Not needed, and invisible, so private. + * Copy constructor. */ - Accessor (const Accessor &a); + Accessor (const Accessor &) = default; public: @@ -852,15 +852,6 @@ namespace internal {} - template - Accessor:: - Accessor (const Accessor &a) - : - tensor (a.tensor), - previous_indices (a.previous_indices) - {} - - template Accessor @@ -893,16 +884,6 @@ namespace internal - template - Accessor:: - Accessor (const Accessor &a) - : - tensor (a.tensor), - previous_indices (a.previous_indices) - {} - - - template typename Accessor::reference Accessor::operator[] (const unsigned int i)