Skip to content

Commit

Permalink
Support DMD for vector moves
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Apr 9, 2024
1 parent 3d33e04 commit 2d3b8d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/numem/mem/ptr.d
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public:
This is a reuse of copy-constructors, and is unique to unique_ptr.
*/
@trusted
this(ref unique_ptr!T other) {

// Free our own refcount if need be
Expand All @@ -163,6 +164,7 @@ public:
This exists for DMD support.
*/
@trusted
this(ref const(unique_ptr!T) other) {

// Free our own refcount if need be
Expand Down

0 comments on commit 2d3b8d7

Please sign in to comment.