https://issues.dlang.org/show_bug.cgi?id=14912

--- Comment #6 from Steven Schveighoffer <schvei...@yahoo.com> ---
Why would a template need memcpy?

T *_d_newitem(T)()
{
   // could eliminate typeid here
   T *result = cast(T *)GC.malloc(T.sizeof, typeid(T).flags);
   *result = T.init;
   return result;
}

--

Reply via email to