M
mojumbo
I am passing around a structure, say:
tsBob
{
int a;
int b;
int bobMethod(bool lb);
};
I would like to make sure the structure is aligned along a 64-bit
boundary (it's being thrown around the system). I assumed it was the
size of a pointer (32-bits) but when I googled & wrote a little driver
(See below) it was only 1 byte. Since I can't believe this does
anyone have an answer?
int main(int argc, char* argv[])
{
tsBob aBob;
cout << "Size of bobMethod is " << sizeof(aBob.bobMethod) << endl;
return 0;
}
tsBob
{
int a;
int b;
int bobMethod(bool lb);
};
I would like to make sure the structure is aligned along a 64-bit
boundary (it's being thrown around the system). I assumed it was the
size of a pointer (32-bits) but when I googled & wrote a little driver
(See below) it was only 1 byte. Since I can't believe this does
anyone have an answer?
int main(int argc, char* argv[])
{
tsBob aBob;
cout << "Size of bobMethod is " << sizeof(aBob.bobMethod) << endl;
return 0;
}