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

--- Comment #15 from [email protected] ---
(In reply to bearophile_hugs from comment #14)

> > auto typedefVal(T)(T val)
> > {
> >     return cast(TypedefType!T)val;
> > }
> 
> Yes, this ER asks for such safe function in Phobos.

But it's better to add a template constraint to that T to be sure it's a
Typedef.

--

Reply via email to