serialisation - prevent restoring archive of class X into class Y

Hello, is it possible to prevent that the archive of class X can be restored in class Y (both have the same layout)? Reagards, Oliver

I don't understand what this means. Robert Ramey Oliver.Kowalke@infineon.com wrote:
Hello, is it possible to prevent that the archive of class X can be restored in class Y (both have the same layout)? Reagards, Oliver
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

"Robert Ramey" <ramey@rrsd.com> writes:
I don't understand what this means.
Robert Ramey
I think he wants this to be an error: X x; ar << x; // -- whatever you have to do to prepare the same archive for reading Y y; ar >> y;
Oliver.Kowalke@infineon.com wrote:
Hello, is it possible to prevent that the archive of class X can be restored in class Y (both have the same layout)? Reagards, Oliver
-- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (3)
-
David Abrahams
-
Oliver.Kowalke@infineon.com
-
Robert Ramey