Example #1
0
File: main.cpp Project: 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;
}
Example #2
0
 static void default_constructor()
 {
     default_construct();
     reinit_register(&reinitializable_static::default_construct,
         &reinitializable_static::destruct);
 }