Boost logo

Boost Users :

Subject: [Boost-users] Serializing using base pointer gives "unregistered void cast" exception
From: Christian Auby (christian_at_[hidden])
Date: 2010-01-20 06:39:01


Class hiarchy:

---
Event
   EventNotification
      EventNotificationUser
---
Each class calls
boost::serialization::base_object<...>(*this);
and has
BOOST_CLASS_EXPORT_GUID(..., "...")
at the end of their header.
>From what I can gather from the manual this is what's needed for boost
to know the types and be able to serialize them, but I still get
"unregistered void cast" exception when I do this:
EventNotificationUser e;
Event* ep = &e;
ar & ep;
Thanks,
Christian

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