Browse Source

sparse_set: make ::free_list [[nodiscard]]

Michele Caini 2 years ago
parent
commit
a987609b2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/sparse_set.hpp

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -499,7 +499,7 @@ public:
      * @brief Returns the head of the free list, if any.
      * @return The head of the free list.
      */
-    size_type free_list() const noexcept {
+    [[nodiscard]] size_type free_list() const noexcept {
         return static_cast<size_type>(head);
     }