From 037734649415475d9a485dca03cec5a857378caa Mon Sep 17 00:00:00 2001 From: github_actions Date: Tue, 27 Aug 2024 15:54:24 +0000 Subject: [PATCH] Automated single-include header generation --- include/ecs/ecs.ixx | 5 +++++ include/ecs/ecs_sh.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/ecs/ecs.ixx b/include/ecs/ecs.ixx index 0189898f..672ccaa9 100644 --- a/include/ecs/ecs.ixx +++ b/include/ecs/ecs.ixx @@ -2544,6 +2544,11 @@ using reduce_parent_t = template using naked_component_t = std::remove_pointer_t>>; +// Ensure that the passed type is naked, ie, it's +// an 'int' and not an 'int*' or 'int const&'. +template +concept naked_component = std::same_as>; + // Alias for stored pools template using pool = component_pool>* const; diff --git a/include/ecs/ecs_sh.h b/include/ecs/ecs_sh.h index 867e6bae..a8c07893 100644 --- a/include/ecs/ecs_sh.h +++ b/include/ecs/ecs_sh.h @@ -2545,6 +2545,11 @@ using reduce_parent_t = template using naked_component_t = std::remove_pointer_t>>; +// Ensure that the passed type is naked, ie, it's +// an 'int' and not an 'int*' or 'int const&'. +template +concept naked_component = std::same_as>; + // Alias for stored pools template using pool = component_pool>* const;