Re: [C++-sig] [Py++] registration order problem in constructor

2009-06-08 Thread Roman Yakovenko
On Mon, Jun 8, 2009 at 1:28 PM, Werner Joergensen wrote: > > Hello, > the Py++ documentation has several recommendations how to solve registration > order problems with member functions. > Like for example this solution (from the documentation): >>s2 = mb.class_( "S2" ) >>s2.member_function( "do_s

[C++-sig] Getting a c++ pointer from a python object

2009-06-08 Thread Simon Pickles
Hi, I am trying to get a c++ pointer to a python object. I am using DirectPython, and a function in that library, getDevice(), "returns the address of the object" - a IDirect3DDevice9*, already created using DirectPython code. Using boost::python, I have an extension module function with thi

Re: [C++-sig] g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-08 Thread Stefan Seefeld
Christopher A Mejia wrote: Stefan, Thanks for your response. The API that I am trying to wrap is the Data Client Server portion of the U.S. Naval Research Labs' SIMDIS Analysis & Display Tool (simdis.nrl.navy.mil). This is free software, but does require registration and there is a human in

Re: [C++-sig] g++ compiler limitations other than -ftemplate-depth-n and -DBOOST_PYTHON_MAX_ARITY ?

2009-06-08 Thread Christopher A Mejia
Stefan, Thanks for your response. The API that I am trying to wrap is the Data Client Server portion of the U.S. Naval Research Labs' SIMDIS Analysis & Display Tool (simdis.nrl.navy.mil). This is free software, but does require registration and there is a human in the loop of the approval pr

[C++-sig] [Py++] registration order problem in constructor

2009-06-08 Thread Werner Joergensen
Hello, the Py++ documentation has several recommendations how to solve registration order problems with member functions. Like for example this solution (from the documentation): >s2 = mb.class_( "S2" ) >s2.member_function( "do_smth" ).use_overload_macro = True But what to do if the class constr