Skip to content

Commit 48c374b

Browse files
committed
test: try to make all compilers happy again
1 parent 4cb4553 commit 48c374b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/entt/entity/entity.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ TYPED_TEST(Entity, Traits) {
5858
ASSERT_EQ(traits_type::next(entt::tombstone), traits_type::construct(entt::null, {}));
5959
ASSERT_EQ(traits_type::next(entt::null), traits_type::construct(entt::null, {}));
6060

61-
if constexpr(traits_type::to_integral(tombstone) != ~traits_type::entity_type{}) {
61+
if constexpr(traits_type::to_integral(tombstone) != ~typename traits_type::entity_type{}) {
6262
// test reserved bits, if any
6363
constexpr entity_type reserved{traits_type::to_integral(entity) | (traits_type::to_integral(tombstone) + 1u)};
6464

test/entt/entity/sparse_set.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ TYPED_TEST(SparseSet, Contains) {
766766
ASSERT_FALSE(set.contains(entity));
767767
ASSERT_FALSE(set.contains(other));
768768

769-
if constexpr(traits_type::to_integral(entt::tombstone) != ~traits_type::entity_type{}) {
769+
if constexpr(traits_type::to_integral(entt::tombstone) != ~typename traits_type::entity_type{}) {
770770
// test reserved bits, if any
771771
constexpr entity_type reserved{traits_type::to_integral(entity) | (traits_type::to_integral(entt::tombstone) + 1u)};
772772

0 commit comments

Comments
 (0)