Skip to content

Commit

Permalink
Fix travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
atilaneves committed Jun 14, 2018
1 parent f15d983 commit a84c55a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/fearless/sharing.d
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ struct Exclusive(T) {
private this(ref T payload) shared {
import std.algorithm: move;
import std.traits: Unqual;
auto payloadPtr = () @trusted { return cast(Unqual!T*)&_payload; }();
move(payload, *payloadPtr);

_payload = () @trusted { return cast(shared) move(payload); }();
payload = payload.init;

init();
}

Expand Down

0 comments on commit a84c55a

Please sign in to comment.