registry: thanks MSVC for accepting invalid C++ code

This commit is contained in:
Michele Caini
2022-12-02 11:57:29 +01:00
parent 0efa25cf61
commit 9d38f60207

View File

@@ -304,7 +304,7 @@ class basic_registry {
auto &cpool = pools[id];
if(!cpool) {
using alloc_type = storage_for_type<std::remove_const_t<Type>>::allocator_type;
using alloc_type = typename storage_for_type<std::remove_const_t<Type>>::allocator_type;
if constexpr(std::is_same_v<Type, void> && !std::is_constructible_v<alloc_type, allocator_type>) {
// std::allocator<void> has no cross constructors (waiting for C++20)