9 May
2007
9 May
'07
3:14 p.m.
Matthias Troyer wrote:
On May 9, 2007, at 8:40 AM, Ng Pan wrote:
The above problem doesn't exist for another pointer m_pD1. Both of them are pointer. The difference is that m_pnInt is integer (basic object) and m_pD1 is user-defined class.
I wonder what should I do to solve the mentioned problem (serialization of pointer of basic object).
As far as I know, serialization of pointers to primitive types (such as int) is not supported by the serialization library. Just serialize the integer directly.
Matthias
pointers to primitive types can only be serialized by including them in a "wrapper" which itself can serialized througha pointer. Robert Ramey