]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure the SmartPointer template remains accessible. 17714/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 18 Sep 2024 22:25:22 +0000 (16:25 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 18 Sep 2024 22:25:22 +0000 (16:25 -0600)
This needs to be so even if one includes the *new* file, as is done
transitively throughtout the library, rather than including only
the old file.

include/deal.II/base/observer_pointer.h
include/deal.II/base/smartpointer.h

index d030dab065307b1c6cf7716165bacaa1fa2b82d2..0dc7e4fe7c024d6ab38286e4b0cd81682b7868b9 100644 (file)
@@ -272,6 +272,17 @@ private:
 };
 
 
+/**
+ * A type alias for the ObserverPointer class that makes sure the previous
+ * name of the class, SmartPointer, continues to be available.
+ *
+ * @deprecated Use the new name of the class, ObserverPointer, instead.
+ */
+template <typename T, typename P = void>
+using SmartPointer DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(
+  "Use the new name of the class, ObserverPointer.") = ObserverPointer<T, P>;
+
+
 /* --------------------- inline Template functions ------------------------- */
 
 
index 3865be68ce76cd6d200992974c6053a92eceffce..ab4a6724bb65bb081dd7058fcc3be7e623179ed0 100644 (file)
 
 #include <deal.II/base/observer_pointer.h>
 
-DEAL_II_NAMESPACE_OPEN
-
-/**
- * A type alias for the ObserverPointer class that makes sure the previous
- * name of the class, SmartPointer, continues to be available.
- *
- * @deprecated Use the new name of the class, ObserverPointer, instead.
- */
-template <typename T, typename P = void>
-using SmartPointer DEAL_II_DEPRECATED_EARLY_WITH_COMMENT(
-  "Use the new name of the class, ObserverPointer.") = ObserverPointer<T, P>;
-
-DEAL_II_NAMESPACE_CLOSE
+// This file is simply an alias for the base/observer_pointer.h file.
+// The class was renamed and deprecated right after the 9.6 release.
+// We should deprecate the file in the following release (9.7 or
+// whatever release number it gets) and remove the release after
+// (9.8 or as appropriate).
 
 #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.