From: Wolfgang Bangerth Date: Fri, 20 Sep 2024 15:39:57 +0000 (-0600) Subject: Make type alias universally available. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e81311f82eff3f50c19c1601ed2f2c8f8d4e3ff6;p=dealii.git Make type alias universally available. --- diff --git a/include/deal.II/base/enable_ref_counting_by_observer_pointer.h b/include/deal.II/base/enable_ref_counting_by_observer_pointer.h index 38e19dc88c..35eeeab758 100644 --- a/include/deal.II/base/enable_ref_counting_by_observer_pointer.h +++ b/include/deal.II/base/enable_ref_counting_by_observer_pointer.h @@ -275,6 +275,18 @@ private: static std::mutex mutex; }; + +/** + * A type alias for the EnableRefCountingByObserverPointer class that makes sure + * the previous name of the class, Subscriptor, continues to be available. + * + * @deprecated Use the new name of the class, ObserverPointer, instead. + */ +using Subscriptor DEAL_II_DEPRECATED_EARLY_WITH_COMMENT( + "Use the new name of the class, EnableRefCountingByObserverPointer.") = + EnableRefCountingByObserverPointer; + + //--------------------------------------------------------------------------- inline EnableRefCountingByObserverPointer::EnableRefCountingByObserverPointer() diff --git a/include/deal.II/base/subscriptor.h b/include/deal.II/base/subscriptor.h index 21b43eeeb2..17d4d6cdb7 100644 --- a/include/deal.II/base/subscriptor.h +++ b/include/deal.II/base/subscriptor.h @@ -20,19 +20,4 @@ #include - -DEAL_II_NAMESPACE_OPEN - -/** - * A type alias for the EnableRefCountingByObserverPointer class that makes sure - * the previous name of the class, Subscriptor, continues to be available. - * - * @deprecated Use the new name of the class, ObserverPointer, instead. - */ -using Subscriptor DEAL_II_DEPRECATED_EARLY_WITH_COMMENT( - "Use the new name of the class, EnableRefCountingByObserverPointer.") = - EnableRefCountingByObserverPointer; - -DEAL_II_NAMESPACE_CLOSE - #endif