From 2e589e6785c29cd8405228fda63cadd8647510ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Thu, 30 May 2024 10:48:33 +0200 Subject: [PATCH] core: Deprecate struct TypeTraits --- CHANGES.md | 1 + src/core/model/type-traits.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 00742cb47..42bcf2510 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,6 +24,7 @@ Changes from ns-3.42 to ns-3-dev ### Changes to existing API +* (core) Deprecated struct `TypeTraits`. Functionality provided by the standard library header `` should be used instead. * (lr-wpan) Attribute `macBeaconPayload` in `MacPibAttributes` is now a std::vector instead of a packet pointer. * (lr-wpan) Removes the word `address` from the MAC address prefix when `LOG_PREFIX_FUNC` is used. * (lr-wpan) Removes the word `address` from the CSMA-CA logs prefix when `LOG_PREFIX_FUNC` is used. diff --git a/src/core/model/type-traits.h b/src/core/model/type-traits.h index 7f5b4490d..916c1360b 100644 --- a/src/core/model/type-traits.h +++ b/src/core/model/type-traits.h @@ -19,6 +19,7 @@ #ifndef TYPE_TRAITS_H #define TYPE_TRAITS_H +#include "deprecated.h" #include "ptr.h" /** @@ -36,7 +37,7 @@ namespace ns3 * \tparam T \deduced The type to inspect. */ template -struct TypeTraits +struct NS_DEPRECATED_3_43("Use functions provided by #include ") TypeTraits { private: /** Null value type traits. */