[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

[C++-sig] automatic conversion of tuple to vector

2010-05-24 Thread Nathan Cournia
Hi All, The FAQ at: http://www.boost.org/doc/libs/1_43_0/libs/python/doc/v2/faq.html lists the following code as not possible with boost.python: C++: void foo(std::vector& array) { for(std::size_t i=0;i>> l = [1, 2, 3] >>> foo(l) >>> print l [2, 4, 6] Basically, the desired behavior is to