From: Remi Gacogne Date: Sat, 25 Mar 2017 09:21:03 +0000 (+0100) Subject: SNMP: Let the compiler elide copy instead of calling the move ctor X-Git-Tag: rec-4.1.0-alpha1~172^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5204%2Fhead;p=thirdparty%2Fpdns.git SNMP: Let the compiler elide copy instead of calling the move ctor --- diff --git a/pdns/snmp-agent.hh b/pdns/snmp-agent.hh index 41fa9f802f..4e2afe2466 100644 --- a/pdns/snmp-agent.hh +++ b/pdns/snmp-agent.hh @@ -32,7 +32,7 @@ public: void run() { #ifdef HAVE_NET_SNMP - d_thread = std::move(std::thread(&SNMPAgent::worker, this)); + d_thread = std::thread(&SNMPAgent::worker, this); #endif /* HAVE_NET_SNMP */ }