]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix PoolingAllocator build errors with older GCCs (#632)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 18 May 2020 21:42:05 +0000 (21:42 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 18 May 2020 21:42:10 +0000 (21:42 +0000)
commitbedfa6a49bb419711209ee52d21db71b4e4b8df5
treeef730beb91a83edba1df46eba94375fd5c32d94c
parent1dcb1d496497166112cfc5cf4a023fb0dfde0b2f
Fix PoolingAllocator build errors with older GCCs (#632)

    error: no class template named rebind in class PoolingAllocator

GCC v4.8.4 (at least) does not fully implement C++11 Allocator-related
APIs, forcing the developer to manually provide Allocator traits that
are supposed to come automatically via std::allocator_traits.

The problem may only manifest itself when using a custom allocator with
types such as std::map<T> and std::list<T> that allocate wrapper
objects instead of Ts. For example, std::vector is unaffected.
src/mem/PoolingAllocator.h