Bläddra i källkod

meta: deprecate ::key_only

Michele Caini 2 år sedan
förälder
incheckning
9a59de939e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1892,7 +1892,7 @@ inline meta_sequence_container::iterator meta_sequence_container::erase(iterator
  * @brief Returns true if a container is also key-only, false otherwise.
  * @return True if the associative container is also key-only, false otherwise.
  */
-[[nodiscard]] inline bool meta_associative_container::key_only() const noexcept {
+[[deprecated("use mapped_type() instead")]] [[nodiscard]] inline bool meta_associative_container::key_only() const noexcept {
     return (mapped_type_node == nullptr);
 }