Skip to content

Commit 01bae51

Browse files
Unconst cast vector copy-ctor for CTFE
1 parent 0c146fb commit 01bae51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/nulib/collections/vector.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public:
123123
*/
124124
this(ref return scope inout(SelfType) rhs) @trusted {
125125
if (__ctfe) {
126-
this = rhs;
126+
this = cast(typeof(this))rhs;
127127
} else {
128128
static if (hasElaborateMove!T) {
129129
memory.resize(rhs.length);

0 commit comments

Comments
 (0)