diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index ec970b5b8..c80ac5bbb 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -1200,7 +1200,7 @@ public: * @return A newly created group. */ template - [[nodiscard]] basic_group...>, get_t...>, exclude_t...>> + basic_group...>, get_t...>, exclude_t...>> group(get_t = {}, exclude_t = {}) { using handler_type = typename basic_group...>, get_t...>, exclude_t...>>::handler; @@ -1270,7 +1270,7 @@ public: /*! @copydoc group */ template - [[nodiscard]] basic_group...>, get_t...>, exclude_t...>> + basic_group...>, get_t...>, exclude_t...>> group_if_exists(get_t = {}, exclude_t = {}) const { using handler_type = typename basic_group...>, get_t...>, exclude_t...>>::handler;