Replace all pointers by this pointer, your data become instantly persistent C++ Persistence.The total source is under 100kB, the binary version 35kB.