On Thursday, 21 November 2013 at 05:47:54 UTC, H. S. Teoh wrote:
        static assert(is(typeof(true ? new Derived1() : (d2ptr =
                newDerived2())) == Base));

The necessity of the cast as in the workaround is really ugly, and is a
fly in my otherwise pleasant D soup currently. :-(


T

I think it is this bug: http://d.puremagic.com/issues/show_bug.cgi?id=3543

Reply via email to