Boost logo

Boost Users :

From: Cheok Yan Cheng (yccheok_at_[hidden])
Date: 2006-08-02 23:15:42


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
 


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net