Originally posted by FillYourBrain
that's pretty slick actually. I never had a need to do that though. I usually will just sizeof(The Type) instead.
Don't structs use a 4 byte grid to align variables ? That might cause some trouble if you try to calculate the size instead of getting it with sizeof(). I can't really image a situation where sizeof(structtype.field) makes sense, but that doesn't mean there isn't any =)