diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 12:48:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 12:48:31 +0100 |
commit | 325c802067d41b8a6edcbda123ca43d933c0633e (patch) | |
tree | 4376df41bec5cf093afeeab43dfbcde602763983 | |
parent | ef699ea4d7d8874397413f09d63049be89d7329a (diff) | |
download | rspamd-325c802067d41b8a6edcbda123ca43d933c0633e.tar.gz rspamd-325c802067d41b8a6edcbda123ca43d933c0633e.zip |
[Minor] Remove deprecated stuff
-rw-r--r-- | src/libutil/cxx/util.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx index 5b2020bb6..68165569e 100644 --- a/src/libutil/cxx/util.hxx +++ b/src/libutil/cxx/util.hxx @@ -137,14 +137,14 @@ constexpr auto enumerate(T && iterable) template <class T> class secure_mem_allocator : public std::allocator<T> { public: - using pointer = typename std::allocator<T>::pointer; + using value_type = typename std::allocator<T>::value_type; using size_type = typename std::allocator<T>::size_type; template<class U> struct rebind { typedef secure_mem_allocator<U> other; }; secure_mem_allocator() noexcept = default; secure_mem_allocator(const secure_mem_allocator &_) noexcept : std::allocator<T>(_) {} template <class U> explicit secure_mem_allocator(const secure_mem_allocator<U>&) 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<T>::deallocate(p, num); } |