From e81311f82eff3f50c19c1601ed2f2c8f8d4e3ff6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 20 Sep 2024 09:39:57 -0600 Subject: [PATCH] Make type alias universally available. --- .../enable_ref_counting_by_observer_pointer.h | 12 ++++++++++++ include/deal.II/base/subscriptor.h | 15 --------------- 2 files changed, 12 insertions(+), 15 deletions(-) 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 -- 2.39.5