fork(3) download
#include 
using namespace std;

template
union u {
  T a;
  char b;
  u(T aa) : a(aa) {}
};

template
u make_u(T t) {
  return {t};
}

int main() {
  std::cout << make_u(1).a;
}
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
1