test: storage type checks
This commit is contained in:
@@ -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 @@
|
||||
|
||||
template<typename Type>
|
||||
struct StorageNoInstance: testing::Test {
|
||||
static_assert(entt::component_traits<Type>::page_size == 0u, "Non-empty type not allowed");
|
||||
|
||||
using type = Type;
|
||||
|
||||
static auto emplace_instance(entt::storage<type> &pool, const entt::entity entt) {
|
||||
|
||||
Reference in New Issue
Block a user