Merge pull request #4480 from trofi/gcc-13-rebind-fix

src/secure_allocator.hpp: define missing 'rebind' type
This commit is contained in:
Luca Boccassi 2022-12-22 11:51:15 +01:00 committed by GitHub
commit bdd471fa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,17 @@ bool operator!= (const secure_allocator_t<T> &, const secure_allocator_t<U> &)
#else
template <typename T> struct secure_allocator_t : std::allocator<T>
{
secure_allocator_t () ZMQ_DEFAULT;
template <class U>
secure_allocator_t (const secure_allocator_t<U> &) ZMQ_NOEXCEPT
{
}
template <class U> struct rebind
{
typedef secure_allocator_t<U> other;
};
};
#endif
}