File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -603,14 +603,9 @@ class Fiber
603603 */
604604 this ( void delegate () dg, size_t sz = PAGESIZE * defaultStackPages,
605605 size_t guardPageSize = PAGESIZE ) nothrow
606- in
607- {
608- assert ( dg );
609- }
610- do
611606 {
612607 allocStack( sz, guardPageSize );
613- reset( dg );
608+ reset( cast ( void delegate () const ) dg );
614609 }
615610
616611
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ class ThreadBase
105105 m_call = fn;
106106 }
107107
108- this (void delegate () dg, size_t sz = 0 ) @safe pure nothrow @nogc
109- in (dg)
108+ this (void delegate () dg, size_t sz = 0 ) @trusted pure nothrow @nogc
109+ in ( cast ( void delegate () const ) dg)
110110 {
111111 this (sz);
112112 m_call = dg;
Original file line number Diff line number Diff line change @@ -1481,7 +1481,7 @@ class TypeInfo_Delegate : TypeInfo
14811481
14821482 override size_t getHash (scope const void * p) @trusted const
14831483 {
1484- return hashOf (* cast (void delegate ()* )p);
1484+ return hashOf (* cast (void delegate () const * )p);
14851485 }
14861486
14871487 override bool equals (in void * p1, in void * p2) const
You can’t perform that action at this time.
0 commit comments