Преглед изворни кода

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;
     }