Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-12-19 11:55:00


Why aren't you just using viritual functions on the base class pointer?

Robert Ramey

 am doing something very similar to what you mention above. What I do is to
store pointers to the objects (shared_ptr actually) as base class ptrs in
the archive. When I read the archive in, I do a dynamic_cast, and I get the
original object back - works very well. I haven't used typeid, so it is
possible that I haven't understood your question...

Mahesh

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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