From 4d6d9e567d29c9bcfb496a69a668a11ec1fac974 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 2 Feb 2021 13:51:30 +0100 Subject: [PATCH] registry: minor changes --- src/entt/entity/registry.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index ad18edb44..215094774 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -676,7 +676,7 @@ public: template void remove(const entity_type entity) { ENTT_ASSERT(valid(entity)); - static_assert(sizeof...(Component) > 0); + static_assert(sizeof...(Component) > 0, "Provide one or more component types"); (assure()->remove(*this, entity), ...); } @@ -693,7 +693,7 @@ public: template void remove(It first, It last) { ENTT_ASSERT(std::all_of(first, last, [this](const auto entity) { return valid(entity); })); - static_assert(sizeof...(Component) > 0); + static_assert(sizeof...(Component) > 0, "Provide one or more component types"); (assure()->remove(*this, first, last), ...); }