Return new allocator for copied containers
authorJeremy Hayes <jeremy@lunarg.com>
Tue, 5 Oct 2021 04:10:00 +0000 (22:10 -0600)
committerJeremy Hayes <jeremy@lunarg.com>
Mon, 25 Oct 2021 16:59:27 +0000 (10:59 -0600)
commitc9cc4845b9561784df79491b30552dbc1a6bae07
treedfb5e2cbb9d09fb13ce8b4a570887bcbd51c3931
parent3afa350331223f688128c94fbbb5ab3a3c7200d0
Return new allocator for copied containers

Fix #2760.

Implement the optional function select_on_container_copy_contruction to
return a default-contructed allocator for containers that are
copy-constructed. This gives copy-constructed containers a pool
allocator for the current thead.

There may be a similar problem with the copy contructor which takes
allocators of type "Other" but, in practice, there is only one place
where this is being used and the allocators are always the same. (i.e.
executing from the same thread)
glslang/Include/PoolAlloc.h