On 9/30/12, jerro <a at a.com> wrote: > I think this should work: > > template returnsRef(alias f) > { > enum bool returnsRef = is(typeof( > { > ParameterTypeTuple!f param; > auto ptr = &f(param); > })); > } Yep. We should add this to Phobos imo.