
3 Aug
2006
3 Aug
'06
3:15 a.m.
Hi Robert, I am using VC++ 2003 I must say, the following workaround just work :) :) :) void load(Archive & ar, const unsigned int version) { void * xptr; xptr = & fiducialPairSearchRegionMap; map<FiducialPair *, vector<RectPair> > *mptr; mptr = static_cast<map<FiducialPair *, vector<RectPair> > >(xptr); ar >> *mptr; } Btw, may I know what is the reason behind of using static_cast instead of reinterpret_cast (reinterpert_cast can be compiled too)? Is it by following a thumb of rule, "use static_cast if you can and use reinterpret_cast if you have to"? Thank you very much! yccheok