|
|
|
|
|
by safercplusplus
338 days ago
|
|
Might I suggest that the scpptool-enforced safe subset of C++ has a better solution for such data structures with cyclic or complex reference graphs, which is run-time checked non-owning pointers [1] that impose no restrictions on how or where the target objects are allocated. Unlike indices, they are safe against use-after-destruction, and they don't require the additional level of indirection either. [1] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point... |
|