I was recently reading up streams when this thought struck me.
If I use read/write to backup or restore objects to/from a stream(..and thus files ..etc);
Is the program prone to the same sort of bugs (or others..) originating from the default copy constructor not being sufficient?
If yes(as it probably is), is there a work around if Binary I/O is a must ?
I thought about overloading the >> and << operators of the class directly, but the whole thing feels rather clumsy.
Also.. is structure padding, in any way, relevant here ?