bitwise
bitwise copied to clipboard
#static_assert directive does not seem to resolve types
struct A
{
b: B;
}
// says Unresolved type name 'B'
#static_assert(sizeof(A) == 4)
struct B
{
data: int32;
}
The workaround is to rearrange declarations so that B is defined before A.