You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0080]: evaluation of constant value failed
--> foo.rs:29:5
|
29 | ["Size of Derived"][::std::mem::size_of::<Derived>() - 16usize];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 8
description
When a class with virtual methods is derived, the fields of derived class can occupy padding of the Base class. But rust representation makes sizeof Derived == sizeof Base + sizeof all fields of derived.
The text was updated successfully, but these errors were encountered:
input C++ header
bindgen command
actual result
compiler error
description
When a class with virtual methods is derived, the fields of derived class can occupy padding of the Base class. But rust representation makes sizeof Derived == sizeof Base + sizeof all fields of derived.
The text was updated successfully, but these errors were encountered: