Tuesday, March 16, 2010

Retrospective 5/3/2010

Loads done since the last posts. Just a quick comment though.

I was getting no WorldObject::Ptr to python by-value runtime errors, simply trying to return a child smart pointer. I thought boost would have taken care of this since I carefully made sure all my WorldObjects are now reference counted via boost::shared_ptr.

However, to fix the runtime error, I had to declare that my WorldObject::Ptr was indeed simlar to a WorldObject by changing the class declaration :

class_ >("WorldObject", no_init)


class_ >("WorldObject", no_init)
Funnily enough I didn't have to do this with IData::Ptr, weird

No comments:

Post a Comment