Re: [C++-sig] [Py++] Does pyplusplus respect explicit constructors?

2009-10-01 Thread Christopher Bruns
Roman Yakovenko wrote: > On Wed, Sep 30, 2009 at 6:18 PM, Christopher Bruns > wrote: > > I suspect I can manually adjust the implicitly_convertible tag > > generation using the "allow_implicit_conversion" flag in pyplusplus. > > Is there a way to tell pyplusplus to avoid generating an > > implici

Re: [C++-sig] boost python to/from python type conversion

2009-10-01 Thread James Amundson
On 09/30/2009 11:48 PM, Ralf W. Grosse-Kunstleve wrote: lvalue_from_pytype only works for passing by value or const references/pointers, but that seems to match your case, since you MPI_Comm is passed by value to your sayhello(). However, wrapping extern "C" isn't portable, AFAIK. You'll need a

Re: [C++-sig] boost python to/from python type conversion

2009-10-01 Thread James Amundson
On 10/01/2009 01:22 AM, Austin Bingham wrote: If it's any help, I wrote a small bit on the details of writing converters. It might help clarify some of the mechanics which, I agree, are a bit mysterious: http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters/ Wond

Re: [C++-sig] [Py++] Does pyplusplus respect explicit constructors?

2009-10-01 Thread Roman Yakovenko
On Thu, Oct 1, 2009 at 5:46 PM, Christopher Bruns wrote: > I disagree.  Py++ does have a way to find out.  The only time > "explicit" matters is when a constructor takes exactly one argument. > gccxml sets "explicit=1" in all cases when the number of arguments is > other than 1.  That is why you s