From: Daniel Arndt Date: Mon, 24 May 2021 15:37:38 +0000 (-0400) Subject: Allow copy construction again X-Git-Tag: v9.3.0~11^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25843f4be0cb2a6284b40ab5b0513760d49340f3;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 7e8f41ad13..f3541bb3f7 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;