fix for MSVC (alignof(T) for abstract T is not allowed)
diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 3fb1221..9dd71e4 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h
@@ -1055,7 +1055,7 @@ record.name = name; record.type = &typeid(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.init_instance = init_instance; record.dealloc = dealloc;