Re: [C++-sig] Exposing std::list<> via Boost.Python

2010-06-22 Thread Jim Bosch
On 06/21/2010 07:01 AM, Phil Bass wrote: We have a lot of C++ code using a home-grown Event class template. An Event is just a list of pointers to callback function objects. More precisely, an Event is a std::list*>, where unary_function is a polymorphic function object class. Code that generates

[C++-sig] wrapping a reference counted class

2010-06-22 Thread Nathan Cournia
Hi, I'm trying to wrap the following class: class Node { public: virtual ~Node(); virtual void compute(); void incRef(); void decRef(); private: unsigned _refCount }; As you can see, the class is reference counted. In most places in my code, I pass around Node* pointers. I