]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete a copy operator that wasn't implemented anyway.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 16:31:05 +0000 (10:31 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 17:08:28 +0000 (11:08 -0600)
include/deal.II/base/exceptions.h

index 37a771bf0c3f589e74653e61e507e1701b40c00a..611e1e0d5e3c6814d7ceea9cefc5351dadea0bf2 100644 (file)
@@ -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().
    */

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.