Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ecde2eb

Browse files
committed
fix deprecations
1 parent 9e86dd4 commit ecde2eb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎source/mir/algorithm/iteration.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private struct BitSliceAccelerator(Field, I = typeof(Field.init[size_t.init]))
121121
import mir.ndslice.field: BitField;
122122

123123
///
124-
alias U = typeof(I + 1u);
124+
alias U = typeof(I.init + 1u);
125125
/// body bits chunks
126126
static if (isIterator!Field)
127127
Slice!Field bodyChunks;

‎source/mir/format.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ unittest
8888
}
8989

9090
/// Concatenated string results
91-
string text(string separator = "", Args...)(auto scoperef const Args args)
91+
string text(string separator = "", Args...)(auto refscope const Args args)
9292
if (Args.length > 0)
9393
{
9494
import mir.utility: _expect;
@@ -607,7 +607,7 @@ void printElement(C = char, EscapeFormat escapeFormat = EscapeFormat.ion, W, T)(
607607
/++
608608
Multiargument overload.
609609
+/
610-
void print(C = char, W, Args...)(scope ref W w, auto scoperef const Args args)
610+
void print(C = char, W, Args...)(scope ref W w, auto refscope const Args args)
611611
if (isSomeChar!C && Args.length > 1)
612612
{
613613
foreach(i, ref c; args)

‎source/mir/interpolate/spline.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ struct Spline(F, size_t N = 1, X = F)
843843
this._data = shape.rcslice!(F[2 ^^ N]);
844844
}
845845

846-
package static auto pickDataSubslice(D)(auto scoperef D data, size_t index) @trusted
846+
package static auto pickDataSubslice(D)(auto refscope D data, size_t index) @trusted
847847
{
848848
auto strides = data.strides;
849849
foreach (i; Iota!(strides.length))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /