]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make type alias universally available.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Sep 2024 15:39:57 +0000 (09:39 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Sep 2024 17:54:09 +0000 (11:54 -0600)
include/deal.II/base/enable_ref_counting_by_observer_pointer.h
include/deal.II/base/subscriptor.h

index 38e19dc88ce1698a562d5ebcabfc374a276080b7..35eeeab75853b14a0be107ef0de1e35576939dfa 100644 (file)
@@ -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()
index 21b43eeeb280c1e7c30d129a9c55e4d6b6b84e9f..17d4d6cdb7311284ffe57fd24852e4eda49bdf41 100644 (file)
 
 #include <deal.II/base/enable_ref_counting_by_observer_pointer.h>
 
-
-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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.