Просмотр исходного кода

any: allow for a smoother transition before deprecating ::owner

Michele Caini 2 лет назад
Родитель
Сommit
aafa8a9b0b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/core/any.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -408,7 +408,7 @@ public:
      * @brief Returns true if a wrapper owns its object, false otherwise.
      * @brief Returns true if a wrapper owns its object, false otherwise.
      * @return True if the 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);
         return (mode == any_policy::owner);
     }
     }