diff --git a/src/entt/entity/storage.hpp b/src/entt/entity/storage.hpp index ac66edfa5..97f2d040c 100644 --- a/src/entt/entity/storage.hpp +++ b/src/entt/entity/storage.hpp @@ -842,7 +842,7 @@ public: */ [[nodiscard]] constexpr allocator_type get_allocator() const noexcept { // std::allocator has no cross constructors (waiting for C++20) - if constexpr(std::is_same_v && !std::is_constructible_v) { + if constexpr(std::is_void_v && !std::is_constructible_v) { return allocator_type{}; } else { return allocator_type{base_type::get_allocator()};