diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index c07345ab2..6d409bfaa 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -99,7 +99,7 @@ private: void pop_all() final { if(auto ® = owner_or_assert(); !destruction.empty()) { - if constexpr(std::is_same_v) { + if constexpr(std::is_same_v) { for(typename underlying_type::size_type pos{}, last = underlying_type::free_list(); pos < last; ++pos) { destruction.publish(reg, underlying_type::base_type::operator[](pos)); } @@ -322,7 +322,7 @@ public: */ template decltype(auto) emplace(const entity_type hint, Args &&...args) { - if constexpr(std::is_same_v) { + if constexpr(std::is_same_v) { const auto entt = underlying_type::emplace(hint, std::forward(args)...); construction.publish(owner_or_assert(), entt); return entt;