cmake: CI fixes
[awesomized/libmemcached] / test / lib / Server.hpp
index 5e263267b1cdd252d61180d9d8808fe0c3061701..26acdc4468b2f89ff0b4524e28ea3251a273a923 100644 (file)
@@ -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);
@@ -67,7 +69,7 @@ public:
 
   bool signal(int signo = SIGTERM);
   bool check();
-  bool isListening();
+  bool isListening() const;
   bool ensureListening();
 
   bool wait(int flags = 0);
@@ -89,7 +91,7 @@ private:
   optional<string> handleArg(vector<char *> &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<string>(sop)) {
     out << get<string>(sop);
   } else {