Browse Source

group: [[nodiscard]] as it should be

Michele Caini 1 year ago
parent
commit
2cb44f2590
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/entity/group.hpp

+ 2 - 2
src/entt/entity/group.hpp

@@ -224,11 +224,11 @@ public:
         common_setup();
         common_setup();
     }
     }
 
 
-    common_type &handle() noexcept {
+    [[nodiscard]] common_type &handle() noexcept {
         return elem;
         return elem;
     }
     }
 
 
-    const common_type &handle() const noexcept {
+    [[nodiscard]] const common_type &handle() const noexcept {
         return elem;
         return elem;
     }
     }