]> source.dussan.org Git - rspamd.git/commitdiff
make gcc 8.5 happy 4112/head
authorMehmet Suslu <msuslu@gmail.com>
Tue, 15 Mar 2022 15:18:10 +0000 (18:18 +0300)
committerGitHub <noreply@github.com>
Tue, 15 Mar 2022 15:18:10 +0000 (18:18 +0300)
gcc 8.5 doesn't compile this file without template parameters for ptr_and_refcnt constructor.

src/libutil/cxx/local_shared_ptr.hxx

index ac069f7641bf72d125eca54a884b8cad526b4217..233c5df1ec343923e946f10b8c72df951fa19eb8 100644 (file)
@@ -128,7 +128,7 @@ public:
        // custom deleter
        template<class Y, class D, typename std::enable_if<
                        std::is_convertible<Y*, element_type*>::value, bool>::type = true>
-       explicit local_shared_ptr(Y* p, D &&d) : px(p), cnt(new detail::ptr_and_refcnt(p, std::forward<D>(d)))
+       explicit local_shared_ptr(Y* p, D &&d) : px(p), cnt(new detail::ptr_and_refcnt<Y, D>(p, std::forward<D>(d)))
        {
        }