I'm trying to serialize and deserialize an object which contains a vector using ofstream and ifstream. The process of serialization works like a charm, but as soon as I call the read method of ifstream, I get a double free or corruption exception. This is my code:I'm trying to serialize and deserialize an obje