Having already developed fixed-type binary tree classes in the past, I am reasonably familiar with the process of serialization and the graph topology of tree structures in general. However, I am currently attempting to implement a generalized C++ tree template and have absolutely no idea as to which approach is best suited for serialization.
As the template may be qualified with both primitive and non-POD types, what is the best technique for generalising node serialization within the base template code?
Please note that this is an exercise in C++ class/template building and as such, the STL/C++ Library will not be used.
Any advice would be gratefully received.
Best regards, Gemma.