bitwise icon indicating copy to clipboard operation
bitwise copied to clipboard

#static_assert directive does not seem to resolve types

Open uucidl opened this issue 7 years ago • 0 comments

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.

uucidl avatar Aug 27 '18 08:08 uucidl