Skip to content

Commit addebe5

Browse files
committed
fix moveToConst
1 parent 35a4da4 commit addebe5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: source/mir/rc/context.d

+4-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ package mixin template CommonRCImpl()
192192

193193
///
194194
ThisTemplate!(const Unqual!T) moveToConst()() scope return @nogc nothrow @trusted @property
195-
{ return move(*cast(typeof(return)*) &this); }
195+
{
196+
import core.lifetime: move;
197+
return move(*cast(typeof(return)*) &this);
198+
}
196199

197200
///
198201
pragma(inline, true)

0 commit comments

Comments
 (0)