Code: Select all
namespace game
{
class IrrNode : public game::Node<irr::scene::ISceneNode>
{
public:
explicit IrrNode(const double &pos);
virtual ~IrrNode();
public:
template<typename AR>
void serialize( AR & ar, const unsigned int version )
{
ar & boost::serialization::base_object<Node<ISceneNode> >(*this);
}
};
}
namespace boost
{
namespace serialization
{
using ::game::IrrNode;
template<class AR>
void load_construct_data(AR &, IrrNode* t, const unsigned int)
{
::new(t) IrrNode(0.0);
}
}
}
BOOST_CLASS_EXPORT(game::IrrNode)
This code gives the following error:
Help?!Error 42 error C2039: 'serialize' : is not a member of 'irr::scene::ISceneNode' C:\...\boost_1_48_0\boost\serialization\access.hpp 118