Skip to content

Commit 2e18a78

Browse files
committed
turn RCArray asSlice and moveToSlice to templates
1 parent 24820ae commit 2e18a78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/mir/rc/array.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,31 +130,31 @@ struct mir_rcarray(T)
130130
}
131131

132132
///
133-
auto asSlice() @property
133+
auto asSlice()() @property
134134
{
135135
import mir.ndslice.slice: mir_slice;
136136
alias It = mir_rci!T;
137137
return mir_slice!It([length], It(this));
138138
}
139139

140140
///
141-
auto asSlice() const @property
141+
auto asSlice()() const @property
142142
{
143143
import mir.ndslice.slice: mir_slice;
144144
alias It = mir_rci!(const T);
145145
return mir_slice!It([length], It(this.lightConst));
146146
}
147147

148148
///
149-
auto asSlice() immutable @property
149+
auto asSlice()() immutable @property
150150
{
151151
import mir.ndslice.slice: mir_slice;
152152
alias It = mir_rci!(immutable T);
153153
return mir_slice!It([length], It(this.lightImmutable));
154154
}
155155

156156
///
157-
auto moveToSlice() @property
157+
auto moveToSlice()() @property
158158
{
159159
import core.lifetime: move;
160160
import mir.ndslice.slice: mir_slice;

0 commit comments

Comments
 (0)