فهرست منبع

group: [[nodiscard]] as it should be

Michele Caini 1 سال پیش
والد
کامیت
2cb44f2590
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/entt/entity/group.hpp

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

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