Переглянути джерело

sparse_set: make ::policy [[nodiscard]]

Michele Caini 4 роки тому
батько
коміт
71e85b44b0
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/entt/entity/sparse_set.hpp

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

@@ -358,7 +358,7 @@ public:
      * @brief Returns the deletion policy of a sparse set.
      * @return The deletion policy of the sparse set.
      */
-    deletion_policy policy() const ENTT_NOEXCEPT {
+    [[nodiscard]] deletion_policy policy() const ENTT_NOEXCEPT {
         return mode;
     }