class FA {int f() {return 1;}}; is 1 byte on Solaris.
Non-virtual Functions do not add any size to a class/struct, so from a size point of view, this is an empty structure, which just requires the one byte for reference.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment