Change signature of operator new in FlexArray
commite9e62e90f359d5201e10f9ec3b9cc03b68c654ce
authorcirdan <cirdansw@gmail.com>
Tue, 18 Oct 2016 16:26:13 +0000 (18 18:26 +0200)
committercirdan <cirdansw@gmail.com>
Tue, 18 Oct 2016 16:26:13 +0000 (18 18:26 +0200)
tree2b17db3f0f7894131d1f2f956605d074b754d765
parentbea737ba803c8c8cd2429345bdd4ae04d84e6c34
Change signature of operator new in FlexArray

Struct FlexArray has a helper placement operator new to make
allocations with extra storage for the flexible array member,
but its signature makes it match a usual (non-placement) operator
delete under C++14, which is not allowed. Change its signature
to have an additional parameter with a default argument to work
around this limitation.
src/blitter/32bpp_anim.hpp
src/blitter/32bpp_anim_sse4.hpp
src/core/flexarray.h