示例#1
0
文件: main.cpp 项目: CCJY/coliru
bool foo() {
  union bar { int i; bool b; };
  union baz { char c; bar b; };
  auto b = baz{'x'};
  destruct(b.c);
  default_construct(b.b);
  construct(b.b.b, true);
  return b.b.b;
}
示例#2
0
 static void default_constructor()
 {
     default_construct();
     reinit_register(&reinitializable_static::default_construct,
         &reinitializable_static::destruct);
 }