Quote:Original post by experiment
The analogy with driving was funny, although it'd be more like:
"I don't want to familiarize myself with driving. I just want someone to get my car from point A to point B for me."
Which means: I was just hoping someone would easily write a serialization example code (based on example I gave). But I guess serialization in C++ isn't so straightforward as I thought.. I knew there'd be crap with std::vector..
This statement has somewhat more far reaching implications than you'd imagine.
You're claiming you do not want to know anything at all about C++ memory layout and management, which means you'll be unable to develop anything non-trivial in C++.
When people say that C++ is difficult, complex and error prone, they do so for a reason.
Unless you clear these terms for yourself, you'll be running into many problems as soon as you start using pointers and references, and basic topics like shallow vs. deep copy, assignment operator, and other basic memory management.
Also: "file.close();" in the original example is not needed. It's quite important to understand why that is so.