struct Temp(T) {
  T t;
}

T* allocate(T)() {
  auto wrap = new Temp!(T);
  return &wrap.t;
}

Reply via email to