]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
channel: Use the template deleter parameter
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 16 Dec 2022 14:47:08 +0000 (15:47 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 07:59:42 +0000 (09:59 +0200)
pdns/channel.hh

index ff34e9f990ea8edde5b5705b1099e089fb09ed2b..9334f3b64db1e010a90fe4a169090d02b98863f4 100644 (file)
@@ -263,7 +263,7 @@ namespace channel
   template <typename T, typename D>
   std::optional<std::unique_ptr<T, D>> Receiver<T, D>::receive()
   {
-    return receive(std::default_delete<T>());
+    return receive(D());
   }
 
   template <typename T, typename D>