From e9e151d54b411dbda8a1151e72a010f17b02cbe6 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 24 May 2021 11:37:38 -0400 Subject: [PATCH] Allow copy construction again --- include/deal.II/grid/tria_accessor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.39.5