From 38c7cddac0e81d69eaa50ed339f230afdfa558de Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 8 Apr 2024 09:28:51 +0200 Subject: [PATCH] group: move a static assert on storage types out from handlers --- src/entt/entity/group.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 691f1b94a..ae4d4bf4e 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -104,7 +104,6 @@ class group_handler; template class group_handler, get_t, exclude_t> final: public group_descriptor { // nasty workaround for an issue with the toolset v141 that doesn't accept a fold expression here - static_assert(!std::disjunction_v::in_place_delete>...>, "Groups do not support in-place delete"); static_assert(!std::disjunction_v..., std::is_const..., std::is_const...>, "Const storage type not allowed"); using base_type = std::common_type_t; @@ -689,6 +688,9 @@ private: */ template class basic_group, get_t, exclude_t> { + // nasty workaround for an issue with the toolset v141 that doesn't accept a fold expression here + static_assert(!std::disjunction_v::in_place_delete>...>, "Groups do not support in-place delete"); + using base_type = std::common_type_t; using underlying_type = typename base_type::entity_type;