From: Vsevolod Stakhov Date: Sun, 19 Jun 2022 11:48:31 +0000 (+0100) Subject: [Minor] Remove deprecated stuff X-Git-Tag: 3.3~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325c802067d41b8a6edcbda123ca43d933c0633e;p=thirdparty%2Frspamd.git [Minor] Remove deprecated stuff --- diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx index 5b2020bb66..68165569e0 100644 --- a/src/libutil/cxx/util.hxx +++ b/src/libutil/cxx/util.hxx @@ -137,14 +137,14 @@ constexpr auto enumerate(T && iterable) template class secure_mem_allocator : public std::allocator { public: - using pointer = typename std::allocator::pointer; + using value_type = typename std::allocator::value_type; using size_type = typename std::allocator::size_type; template struct rebind { typedef secure_mem_allocator other; }; secure_mem_allocator() noexcept = default; secure_mem_allocator(const secure_mem_allocator &_) noexcept : std::allocator(_) {} template explicit secure_mem_allocator(const secure_mem_allocator&) noexcept {} - void deallocate(pointer p, size_type num) noexcept { + void deallocate(value_type *p, size_type num) noexcept { rspamd_explicit_memzero((void *)p, num); std::allocator::deallocate(p, num); }