]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow copy construction again
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 24 May 2021 15:37:38 +0000 (11:37 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 24 May 2021 15:37:38 +0000 (11:37 -0400)
include/deal.II/grid/tria_accessor.h

index f814ef61ced70a5ae06a80f847dcd076689200a1..420667e4fb44561c40a52d034b0741d2be2b09bd 100644 (file)
@@ -721,12 +721,13 @@ public:
                const AccessorData *                local_data = nullptr);
 
   /**
-   * Similar to the copy assignment operator the copy constructor is deleted.
+   * The copy constructor is not deleted but copied constructed elements should
+   * not be modified, also the comments to the copy assignemtn operator.
    */
-  TriaAccessor(const TriaAccessor &) = delete;
+  TriaAccessor(const TriaAccessor &) = default;
 
   /**
-   * Move construction is still allowed.
+   * Move constructor.
    */
   TriaAccessor(TriaAccessor &&) = default;
 

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.