(August 10, 2021 at 4:11 pm)HappySkeptic Wrote: That requires making use of things like shared_ptr<> rather than copying large objects into new variables (it also helps with performance).Damned pointers, I was never good with them.
I notice that every TreeNode generates some data which looks like it is the same for all instances. That is wasteful - it should be static and initialized statically. That also causes much less data to be copied.
I have tried using static fields, but the linker keeps complaining then. I do not know enough C++ to figure out why.
Maybe you can fork me on GitHub to fix those things?