tornavis/intern/guardedalloc
Sergey Sharybin 42e13ea4bf Cleanup: Deprecated field access in outliner_duplicate
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
2022-03-16 12:38:23 +01:00
..
cpp File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
intern File headers: manually convert files to use SPDX headers 2022-02-11 15:15:49 +11:00
test/simpletest File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
tests File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
CMakeLists.txt File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
MEM_guardedalloc.h Cleanup: Deprecated field access in outliner_duplicate 2022-03-16 12:38:23 +01:00