Post date: Apr 21, 2017 12:20:12 PM
When trees of various sorts are serialized, doing it by recursing through the trees may very well result in a stack overflow. The solution I tried is for saving
iterate through tree and
put individual nodes into a std::vector
For loading
for each element in the std::vector, add to the tree.
Crashed with the recursive tree serialization using boost::serialization but works okay so far with the vector. Besides, the recreation of the tree may help balance it.