#include "A.hpp" #include "B.hpp" #include int main(int argc, const char* argv[]) { A a("test-a", 3.14f); save(a); B b("test-b", 2.71f); save(b); //load them again and check if they are correct A c("foo", -1.f); load(c); std::cout << c.foo << " " << c.bar.soup << std::endl; B d("foo", -1.f); load(d); std::cout << d.foo << " " << d.bar.soup << std::endl; return 0; }