fix for MSVC (alignof(T) for abstract T is not allowed)

This commit is contained in:
Wenzel Jakob 2018-11-09 10:08:02 +01:00
parent e6ae062c5b
commit 5c11b1c871

View File

@ -1055,7 +1055,7 @@ public:
record.name = name; record.name = name;
record.type = &typeid(type); record.type = &typeid(type);
record.type_size = sizeof(conditional_t<has_alias, type_alias, type>); record.type_size = sizeof(conditional_t<has_alias, type_alias, type>);
record.type_align = alignof(conditional_t<has_alias, type_alias, type>); record.type_align = alignof(conditional_t<has_alias, type_alias, type>&);
record.holder_size = sizeof(holder_type); record.holder_size = sizeof(holder_type);
record.init_instance = init_instance; record.init_instance = init_instance;
record.dealloc = dealloc; record.dealloc = dealloc;