C++0x - 拡張sizeof

staticでないメンバ変数を、インスタンス作成なしにsizeofできる

struct hoge {
    int id;
};

sizeof(hoge::id);


C++0x言語拡張まとめ