Skip to content

Commit

Permalink
#962 send- cleanup notes and such
Browse files Browse the repository at this point in the history
  • Loading branch information
pnstickne committed Aug 14, 2020
1 parent 7ee0c10 commit b37a297
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/vt/messaging/active.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,17 @@ struct BufferedActiveMsg {
*/
template <typename MsgT>
struct TransferMsg {
// TODO: This should 'go away' when direct 'msg.get()' usages are replaced with 'msg'
// This should go away entirely once all usages are eliminated.
// The core usages are for tests to ensure the current API works,
// [[deprecated]]
/*implicit*/ TransferMsg(MsgT const* msgPtr) : msg_(promoteMsg<MsgT>(const_cast<MsgT*>(msgPtr))) {
}

// n.b. invalidates msg
/**
* \brief Moves msg into the transfer message.
*
* As though std::move(msg) was used, msg is invalidated.
*/
/*implicit*/ TransferMsg(MsgPtr<MsgT>& msg) : msg_(std::move(msg)) {
}

Expand Down

0 comments on commit b37a297

Please sign in to comment.