Re: [Mesa-dev] [RFC PATCH] util/ralloc: make mem_ctx parameter const for all r*alloc functions

2017-12-08 Thread Gert Wollny
This one got lost ... Am Donnerstag, den 02.11.2017, 16:46 +0100 schrieb Nicolai Hähnle: > On 26.10.2017 13:02, Gert Wollny wrote: > > r(z)alloc_size and get_header both take a "const void *" for > > mem_ctx, > > but most of the other functions take a "void *" and also the "new" > > operator in

Re: [Mesa-dev] [RFC PATCH] util/ralloc: make mem_ctx parameter const for all r*alloc functions

2017-11-02 Thread Nicolai Hähnle
On 26.10.2017 13:02, Gert Wollny wrote: r(z)alloc_size and get_header both take a "const void *" for mem_ctx, but most of the other functions take a "void *" and also the "new" operator in DECLARE_ALLOC_CXX_OPERATORS_TEMPLATE. The latter makes it impossible to copy-construct from a constant