We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am trying to mock a class that manages binary data, and is compiled with the packed attribute to avoid padding between data fields.
packed
For instance:
struct Test { int a; char b; virtual int get_a() = 0; virtual char get_b() = 0; } __attribute__((packed));
The compile will fail in this assert:
static_assert(sizeof(C) == sizeof(FakeObject<C, baseclasses...>), "This is a problem");
I didn't find any documentation or issues, any ideas on how to solve it?
The text was updated successfully, but these errors were encountered:
Well, I guess this is not supported currently. It seems that special code for packed classes is needed.
Sorry, something went wrong.
No branches or pull requests
Hi,
I am trying to mock a class that manages binary data, and is compiled with the
packed
attribute to avoid padding between data fields.For instance:
The compile will fail in this assert:
I didn't find any documentation or issues, any ideas on how to solve it?
The text was updated successfully, but these errors were encountered: