X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FServer.hpp;h=9b1d4a7324c2334800cc075597e237b455e1f494;hb=fd66e60622e8e139753f62454cfdd5be662e39a0;hp=5e263267b1cdd252d61180d9d8808fe0c3061701;hpb=fb3710011600c04359d26615be7a92df1742a3e9;p=m6w6%2Flibmemcached diff --git a/test/lib/Server.hpp b/test/lib/Server.hpp index 5e263267..9b1d4a73 100644 --- a/test/lib/Server.hpp +++ b/test/lib/Server.hpp @@ -36,8 +36,10 @@ public: Server(const Server &s); Server &operator=(const Server &s); - Server(Server &&s) { *this = move(s); }; - Server &operator=(Server &&s) { + Server(Server &&s) noexcept { + *this = move(s); + }; + Server &operator=(Server &&s) noexcept { binary = exchange(s.binary, "false"); args = exchange(s.args, {}); pid = exchange(s.pid, 0); @@ -89,7 +91,7 @@ private: optional handleArg(vector &arr, const string &arg, const arg_func_t &next_arg); }; -inline ostream &operator<<(ostream &out, const socket_or_port_t sop) { +inline ostream &operator<<(ostream &out, const socket_or_port_t &sop) { if (holds_alternative(sop)) { out << get(sop); } else {