Skip to content

Commit

Permalink
added a static_assert in a test to suppress a warning from GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 8, 2019
1 parent 5717dbd commit be35975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/entt/entity/registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>());
Expand Down

0 comments on commit be35975

Please sign in to comment.