d冻结类的大小.

struct S
{
    int a;
    enum size = S.sizeof;//冻结构大小
    mixin("int b;");
}
posted @ 2022-01-19 21:56  zjh6  阅读(13)  评论(0)    收藏  举报  来源