
6 Nov
2008
6 Nov
'08
7:34 p.m.
on Tue Nov 04 2008, "Robert Ramey" <ramey-AT-rrsd.com> wrote:
David Abrahams wrote:
I don't think there's any trickery involved. I'll just
ar << transmit_type;
ar >> receive_type;
What am I missing?
BOOST_SERIALIZATION_SPLIT_FREE(transmit_type)
BOOST_SERIALIZATION_SPLIT_FREE(recieve_type)
template<class Archive> save<transmit_type>(Archive ar, ...){...} load<recieve_type>(...){..}.
leave undefined the following:
save<recieve_type>(...){..}. load<transmit_type>(Archive ar, ...){...}
So that your get a compile time error if you try to
ar >> transmit_type
Thanks, I think that works! -- Dave Abrahams BoostPro Computing http://www.boostpro.com