From: Wolfgang Bangerth Date: Wed, 12 Jul 2017 16:31:05 +0000 (-0600) Subject: Delete a copy operator that wasn't implemented anyway. X-Git-Tag: v9.0.0-rc1~1425^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68fd9f5712a8db5195da57b1da6e01bbd699b58;p=dealii.git Delete a copy operator that wasn't implemented anyway. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 37a771bf0c..611e1e0d5e 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -57,6 +57,12 @@ public: */ virtual ~ExceptionBase () noexcept; + /** + * Copy operator. This operator is deleted since exception objects + * are not copyable. + */ + ExceptionBase operator= (const ExceptionBase &) = delete; + /** * Set the file name and line of where the exception appeared as well as the * violated condition and the name of the exception as a char pointer. This @@ -142,11 +148,6 @@ protected: #endif private: - /** - * Copy operator. Made private since it is not used and not implemented. - */ - ExceptionBase operator= (const ExceptionBase &exc); - /** * Internal function that generates the c_string. Called by what(). */