$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: John Pye (john.pye_at_[hidden])
Date: 2007-09-03 04:53:45
Hi all
I have been getting an 'unregistered void cast' *runtime* error message
following some apparently unrelated changes to my code.
Can anyone possibly clarify the cases when it is necessary to use
"void_cast_register" with Boost::Serialization?
I think that the error is coming from attempts to serialize this class:
    class MirrorBundleIndexed
            : public std::map<MeshIndex, boost::shared_ptr<Mirror> >
            , public Object
    {
    public:
        typedef boost::shared_ptr<Mirror> valuetype;
        typedef std::map<MeshIndex,valuetype> container;
        typedef container::iterator iterator;
        typedef container::const_iterator const_iterator;
    ...
    private:
        friend class boost::serialization::access;
        template<class Archive>
        OPTX_LOCAL void serialize(Archive & ar, const unsigned int version){
            ar & boost::serialization::base_object<Object>(*this);
            ar & boost::serialization::base_object<container>(*this);   
           
        }
    };
Cheers
JP