On 06/20/2012 05:24 PM, Timon Gehr wrote:

static assert(is(typeof(immutable(S).mutable)==R delegate(A) immutable));
static assert(is(typeof(immutable(S).const_)==R delegate(A) immutable));



Actually,

static assert(is(typeof(cast()immutable(S).mutable)==R delegate(A) immutable)); static assert(is(typeof(cast()immutable(S).const_)==R delegate(A) immutable));

Reply via email to