File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ private void checkShapesMatch(
576576 string fun = __FUNCTION__ ,
577577 string pfun = __PRETTY_FUNCTION__ ,
578578 Slices... )
579- (scope ref const Slices slices)
579+ (Slices slices)
580580 if (Slices.length > 1 )
581581{
582582 enum msgShape = " all slices must have the same shape" ~ tailErrorMessage! (fun, pfun);
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ struct ScopedBuffer(T, size_t bytes = 4096)
214214 }
215215
216216 // /
217- inout (T)[] data () inout @property @safe scope return
217+ inout (T)[] data () inout @property @trusted scope return
218218 {
219219 return _buffer.length ? _buffer[0 .. _currentLength] : _scopeBuffer[0 .. _currentLength];
220220 }
Original file line number Diff line number Diff line change @@ -472,19 +472,18 @@ package(mir) template allLightScope(args...)
472472{
473473 static if (args.length)
474474 {
475- alias arg = args[0 ];
476- alias Arg = typeof (arg);
475+ alias Arg = typeof (args[0 ]);
477476 static if (! isDynamicArray! Arg)
478477 {
479478 static if (! is (LightScopeOf! Arg == Arg))
480- @optmath @property allLightScopeMod()()
479+ @optmath @property auto allLightScopeMod()()
481480 {
482481 import mir.qualifier: lightScope;
483- return lightScope (arg) ;
482+ return args[ 0 ]. lightScope;
484483 }
485- else alias allLightScopeMod = arg ;
484+ else alias allLightScopeMod = args[ 0 ] ;
486485 }
487- else alias allLightScopeMod = arg ;
486+ else alias allLightScopeMod = args[ 0 ] ;
488487 alias allLightScope = AliasSeq! (allLightScopeMod, allLightScope! (args[1 .. $]));
489488 }
490489 else
You can’t perform that action at this time.
0 commit comments