]> 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 21:57:41 +0000 (17:57 -0400)
include/deal.II/grid/tria_accessor.h

index 7e8f41ad130fd0cc67bb27618d4d87fcd8b02c13..f3541bb3f7e3877e7725b8511e9e0d5701c48da8 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.