Is there something like Unqual that can remove the safety attributes from a type?

Unqual doesn't work:
-----------------------------------------------------------------------------------
class handler
{
    @safe void opCall(int i) {}
}

static assert(is(Unqual!(typeof(&(handler.init.opCall))) == void delegate(int)));
-----------------------------------------------------------------------------------
event.d(554): Error: static assert (is(void delegate(int i) @safe == void delegate(int b))) is false

--
Johannes Pfau

Reply via email to