Skip to content

Commit 3410399

Browse files
committed
nothrow opAssign for Small Sting/Array
1 parent 8fd54b0 commit 3410399

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/mir/small_array.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ struct SmallArray(T, uint maxLength)
102102
}
103103

104104
/// ditto
105-
ref typeof(this) opAssign(ref SmallArray rhs) return
105+
ref typeof(this) opAssign(ref SmallArray rhs) return nothrow
106106
{
107107
_data = rhs._data;
108108
return this;
109109
}
110110

111111
/// ditto
112-
ref typeof(this) opAssign(SmallArray rhs) return
112+
ref typeof(this) opAssign(SmallArray rhs) return nothrow
113113
{
114114
_data = rhs._data;
115115
return this;

source/mir/small_string.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ extern(D):
111111
}
112112

113113
/// ditto
114-
ref typeof(this) opAssign(ref scope const SmallString rhs) return
114+
ref typeof(this) opAssign(ref scope const SmallString rhs) return nothrow
115115
{
116116
_data = rhs._data;
117117
return this;
118118
}
119119

120120
/// ditto
121-
ref typeof(this) opAssign(SmallString rhs) return
121+
ref typeof(this) opAssign(SmallString rhs) return nothrow
122122
{
123123
_data = rhs._data;
124124
return this;

0 commit comments

Comments
 (0)