From: Daniel Arndt Date: Mon, 24 May 2021 15:37:38 +0000 (-0400) Subject: Allow copy construction again X-Git-Tag: v9.4.0-rc1~1340^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9e151d54b411dbda8a1151e72a010f17b02cbe6;p=dealii.git Allow copy construction again --- diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index f814ef61ce..420667e4fb 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -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;