@@ -68,6 +68,8 @@ struct entt::component_traits<std::unordered_set<char>> {
template<typename Type>
struct Storage: testing::Test {
+ static_assert(entt::component_traits<Type>::page_size != 0u, "Empty type not allowed");
+
using type = Type;
};
@@ -16,6 +16,8 @@
struct StorageNoInstance: testing::Test {
+ static_assert(entt::component_traits<Type>::page_size == 0u, "Non-empty type not allowed");
static auto emplace_instance(entt::storage<type> &pool, const entt::entity entt) {