Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-02-10 21:49:34


test1.cpp(92): error: the type in a const_cast must be a pointer, reference, or pointer to member to an object type

try changing the following
      ar << const_cast<otext *> (_Desc) << const_cast<ut4> (_pkgIndex) << const_cast<ut4> (_clsIndex);
to:
    ar << const_cast<otext * const>(_Desc);

    ar << _pkgIndex;
    ar << _clsIndex;

I woudl also be susppect of having ":" in an exported name - maybe its ok
but consider replacing

BOOST_CLASS_EXPORT(CModule::CInterface)

with something like something like

BOOST_CLASS_EXPORT_GUID(CModule::CInterface, CModule_CInterface)

Robert Ramey



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