recover old content in C++ class