mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
fix for MSVC (alignof(T) for abstract T is not allowed)
This commit is contained in:
parent
e6ae062c5b
commit
5c11b1c871
@ -1055,7 +1055,7 @@ public:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user