From b68fd9f5712a8db5195da57b1da6e01bbd699b58 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Jul 2017 10:31:05 -0600 Subject: [PATCH] Delete a copy operator that wasn't implemented anyway. --- include/deal.II/base/exceptions.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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(). */ -- 2.39.5