added a static_assert in a test to suppress a warning from GCC
This commit is contained in:
@@ -1133,6 +1133,7 @@ TEST(Registry, CreateManyEntitiesWithComponentsAtOnce) {
|
||||
registry.destroy(registry.create());
|
||||
|
||||
const auto [iptr, cptr, eptr] = registry.create<int, char, empty_type>(std::begin(entities), std::end(entities));
|
||||
static_assert(std::is_same_v<typename decltype(eptr)::reference, empty_type>);
|
||||
|
||||
ASSERT_FALSE(registry.empty<int>());
|
||||
ASSERT_FALSE(registry.empty<char>());
|
||||
|
||||
Reference in New Issue
Block a user