From f28104bfac0c64bdcd94918c311e64711956bef0 Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 2 Feb 2026 14:01:06 +0100 Subject: [PATCH] test: less sfinae, more concepts --- test/common/throwing_allocator.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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} {}