mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Merge pull request #4480 from trofi/gcc-13-rebind-fix
src/secure_allocator.hpp: define missing 'rebind' type
This commit is contained in:
commit
bdd471fa17
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user