diff --git a/test/common/throwing_allocator.hpp b/test/common/throwing_allocator.hpp index c9dbc0a77..c2056c21b 100644 --- a/test/common/throwing_allocator.hpp +++ b/test/common/throwing_allocator.hpp @@ -1,6 +1,7 @@ #ifndef ENTT_COMMON_THROWING_ALLOCATOR_HPP #define ENTT_COMMON_THROWING_ALLOCATOR_HPP +#include #include #include #include @@ -18,12 +19,14 @@ class throwing_allocator { template friend class throwing_allocator; - template || std::is_constructible_v, std::allocator>>> + template + requires !std::is_void_v || std::constructible_from, std::allocator> throwing_allocator(int, const throwing_allocator &other) : allocator{other.allocator}, config{other.config} {} - template && !std::is_constructible_v, std::allocator>>> + template + requires std::is_void_v || std::constructible_from, std::allocator> throwing_allocator(char, const throwing_allocator &other) : allocator{}, config{other.config} {}