forked from bartvdbraak/blender
42e13ea4bf
Solved by introducing introducing a variant of MEM_cnew which behaves as a copy-constructor for a trivial types. Alternative approach would be to surround DNA structs with clang/gcc diagnostics push/modify/pop so that implicitly defined constructors and copy operators are allowed to access deprecated fields. The downside of the DNA approach is that it will require some way to easily apply diagnostics modifications to many structs, which is not possible currently. The newly added MEM_cnew has other good usecases, so is easiest to use this route, at least for now. Differential Revision: https://developer.blender.org/D14356 |
||
---|---|---|
.. | ||
cpp | ||
intern | ||
test/simpletest | ||
tests | ||
CMakeLists.txt | ||
MEM_guardedalloc.h |