From aafa8a9b0b2c2efc3d51e3a1b9dad8ba8981c19a Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sat, 19 Aug 2023 16:15:38 +0200 Subject: [PATCH] any: allow for a smoother transition before deprecating ::owner --- src/entt/core/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 5c9e4260f..f533127e7 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -408,7 +408,7 @@ public: * @brief Returns true if a wrapper owns its object, false otherwise. * @return True if the wrapper owns its object, false otherwise. */ - [[deprecated("use policy() and any_policy instead")]] [[nodiscard]] bool owner() const noexcept { + [[nodiscard]] bool owner() const noexcept { return (mode == any_policy::owner); }