From 3be97284e6fde2d4b8e67d9653573e322f55df73 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Sep 2024 09:34:00 -0600 Subject: [PATCH] Make the old class name available as an alias. --- include/deal.II/base/smartpointer.h | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/deal.II/base/smartpointer.h diff --git a/include/deal.II/base/smartpointer.h b/include/deal.II/base/smartpointer.h new file mode 100644 index 0000000000..3865be68ce --- /dev/null +++ b/include/deal.II/base/smartpointer.h @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------ +// +// SPDX-License-Identifier: LGPL-2.1-or-later +// Copyright (C) 1998 - 2023 by the deal.II authors +// +// This file is part of the deal.II library. +// +// Part of the source code is dual licensed under Apache-2.0 WITH +// LLVM-exception OR LGPL-2.1-or-later. Detailed license information +// governing the source code and code contributions can be found in +// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. +// +// ------------------------------------------------------------------------ + +#ifndef dealii_smartpointer_h +#define dealii_smartpointer_h + + +#include + +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 +using SmartPointer DEAL_II_DEPRECATED_EARLY_WITH_COMMENT( + "Use the new name of the class, ObserverPointer.") = ObserverPointer; + +DEAL_II_NAMESPACE_CLOSE + +#endif -- 2.39.5