March 12, 2005
11:38 p.m.
"Leonard \"paniq\" Ritter" <paniq@paniq.org> writes:
Yeah, just export View using Ptr<View> as the HeldType.
as if it were that easy! ;)
i followed the manual for that and exposed Ptr<T> as a pointee using
namespace boost { namespace python { template <typename T> struct pointee< Mu::Ptr<T> > { typedef T type; }; } }
You also need namespace Mu { template <class T> T* get_pointer(Ptr<T> const& p) { return p.get(); // or something } } -- Dave Abrahams Boost Consulting www.boost-consulting.com