Size of a non-static member of a class
How to get the size of a non-static member of a class without construct that class?
C
sizeof operator:
When applied to an expression, sizeof does not evaluate the expression...
Hence, we can write:
sizeof(((Foo*) 0)->m);
C++
c++0x allow that:
// a...
notes.mukyu.dev1 min read