Skip to content

Commit 43bed97

Browse files
committed
make toConst a template
1 parent c7fe9c8 commit 43bed97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/mir/ndslice/slice.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ struct Slice(SliceKind kind, size_t[] packs, Iterator)
692692
/++
693693
Implicit cast to const slices in case of underlaying range is a pointer.
694694
+/
695-
ref ConstThis toConst() const @trusted pure nothrow @nogc
695+
ref ConstThis toConst()() const @trusted pure nothrow @nogc
696696
{
697697
pragma(inline, true);
698698
return *cast(ConstThis*) &this;

0 commit comments

Comments
 (0)