Skip to content

Commit

Permalink
Use std::move rather than just move
Browse files Browse the repository at this point in the history
Apparently:

  "warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]"

is default in new XCode.
  • Loading branch information
ktf authored and rbx committed Oct 23, 2023
1 parent f732b87 commit b40db42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fairmq/tools/Process.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LinePrinter
public:
LinePrinter(stringstream& out, string prefix)
: fOut(out)
, fPrefix(move(prefix))
, fPrefix(std::move(prefix))
{}

// prints line with prefix on both cout (thread-safe) and output stream
Expand Down
2 changes: 1 addition & 1 deletion fairmq/zeromq/Socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Socket final : public fair::mq::Socket
int nbytes = zmq_msg_recv(static_cast<Message*>(part.get())->GetMessage(), fSocket, flags);
if (nbytes >= 0) {
static_cast<Message*>(part.get())->Realign();
msgVec.push_back(move(part));
msgVec.push_back(std::move(part));
totalSize += nbytes;
} else if (zmq_errno() == EAGAIN || zmq_errno() == EINTR) {
if (fCtx.Interrupted()) {
Expand Down

0 comments on commit b40db42

Please sign in to comment.