aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehmet Suslu <msuslu@gmail.com>2022-03-15 18:18:10 +0300
committerGitHub <noreply@github.com>2022-03-15 18:18:10 +0300
commit11318c481d585bc7567078598fcf6ebc41d2c890 (patch)
tree11ba5b4591d2401dee446e4f3d558ace49575081
parentb7605d923902799f60fcdcb3804dd725ef62e67b (diff)
downloadrspamd-11318c481d585bc7567078598fcf6ebc41d2c890.tar.gz
rspamd-11318c481d585bc7567078598fcf6ebc41d2c890.zip
make gcc 8.5 happy
gcc 8.5 doesn't compile this file without template parameters for ptr_and_refcnt constructor.
-rw-r--r--src/libutil/cxx/local_shared_ptr.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/cxx/local_shared_ptr.hxx b/src/libutil/cxx/local_shared_ptr.hxx
index ac069f764..233c5df1e 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<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)))
{
}