From b40db42196045233f1512b57f42d3c5f7efecdaa Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:46:45 +0200 Subject: [PATCH] Use std::move rather than just move Apparently: "warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]" is default in new XCode. --- fairmq/tools/Process.cxx | 2 +- fairmq/zeromq/Socket.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fairmq/tools/Process.cxx b/fairmq/tools/Process.cxx index 13e769bb5..ee90186fc 100644 --- a/fairmq/tools/Process.cxx +++ b/fairmq/tools/Process.cxx @@ -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 diff --git a/fairmq/zeromq/Socket.h b/fairmq/zeromq/Socket.h index 2167600b2..bce1038e7 100644 --- a/fairmq/zeromq/Socket.h +++ b/fairmq/zeromq/Socket.h @@ -225,7 +225,7 @@ class Socket final : public fair::mq::Socket int nbytes = zmq_msg_recv(static_cast(part.get())->GetMessage(), fSocket, flags); if (nbytes >= 0) { static_cast(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()) {