n
implementation detail and I don't want anyone else to depend on its
existence." If A were later to remove its internal class, compilation of
B would fail.
The "correct" way of doing this I suppose is to make both classes friends
of eachother. But best of all would be to not use
brary is not
intended for other uses of serialization than giving an object lifetime
beyond that of the program. For instance, serializing an object as a
step in preparing it to be transferred to another computer in a
distributed program. Is this true, or am I interpreting the text in a
too narrow-