From: Marc Fehling Date: Thu, 12 Nov 2020 02:37:05 +0000 (-0700) Subject: Deprecated FiniteElement::operator[]. X-Git-Tag: v9.3.0-rc1~913^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde345fb721c685a30ed464b2ece5fd7b33ebb61;p=dealii.git Deprecated FiniteElement::operator[]. --- diff --git a/doc/news/changes/incompatibilities/20201111Fehling b/doc/news/changes/incompatibilities/20201111Fehling new file mode 100644 index 0000000000..aa0995b10d --- /dev/null +++ b/doc/news/changes/incompatibilities/20201111Fehling @@ -0,0 +1,5 @@ +Deprecated: The operator FiniteElement::operator[] has been deprecated. +Use DoFHandler::get_fe() with a specified index instead of code like +dof_handler->get_fe()[index]. +
+(Marc Fehling, 2020/11/11) diff --git a/include/deal.II/fe/fe.h b/include/deal.II/fe/fe.h index 88b5787810..d0e58d067c 100644 --- a/include/deal.II/fe/fe.h +++ b/include/deal.II/fe/fe.h @@ -837,9 +837,12 @@ public: * operator[] accepts this zero argument, by returning the finite element * with index zero within its collection (that, of course, consists only of * the present finite element anyway). + * + * @deprecated With DoFHandler::get_fe(int) and the deprecation of the + * hp::DoFHandler class, there is no more use of this operator. */ - const FiniteElement & - operator[](const unsigned int fe_index) const; + DEAL_II_DEPRECATED const FiniteElement & + operator[](const unsigned int fe_index) const; /** * @name Shape function access