From: Mehmet Suslu Date: Tue, 15 Mar 2022 15:18:10 +0000 (+0300) Subject: make gcc 8.5 happy X-Git-Tag: 3.2~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4112%2Fhead;p=thirdparty%2Frspamd.git make gcc 8.5 happy gcc 8.5 doesn't compile this file without template parameters for ptr_and_refcnt constructor. --- diff --git a/src/libutil/cxx/local_shared_ptr.hxx b/src/libutil/cxx/local_shared_ptr.hxx index ac069f7641..233c5df1ec 100644 --- a/src/libutil/cxx/local_shared_ptr.hxx +++ b/src/libutil/cxx/local_shared_ptr.hxx @@ -128,7 +128,7 @@ public: // custom deleter template::value, bool>::type = true> - explicit local_shared_ptr(Y* p, D &&d) : px(p), cnt(new detail::ptr_and_refcnt(p, std::forward(d))) + explicit local_shared_ptr(Y* p, D &&d) : px(p), cnt(new detail::ptr_and_refcnt(p, std::forward(d))) { }