Hi,
The main problem here is that, in my base class I have a lot of
protected virtual methods, and to export this I need replicate and
export again all functions for all derived class.
This cause a lot of call to function ".def" from "class_" template,
and this make the code bigger. Some classes
Hi, All:
I need to unload a C++ extension libraries in python (*.pyd files), but
found many posts said Python do not have this ability when I search the
web. I wonder if anyone knows if this is true or not. If that is true,
is there any way to solve this problem?
Thanks a lot, Jizhen
__
Does this look about right? Perhaps this should be added to the
standard installation.
Necessary for forcing disconnects from python objects on the c++ side...
// Uninstall the instance data for a C++ object from a Python instance
// object.
void instance_holder::uninstall(PyObject* self) throw()
on Tue Jan 27 2009, ZaeX wrote:
> Thanks, Roman. It solved the problem.
> Can't believe this '&' takes me two days.
Using T const& as a parameter would've worked too. The thing to remember
with Boost.Python is that a T& parameter has a very special meaning:
there has to be a T hanging around i
on Tue Jan 27 2009, Cameron Royal wrote:
> So I'm having some difficulty getting one of the boost.python tutorial
> examples working. In particular the class with a string constuctor.
>
> http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/python/exposing.html#python.construct
Thanks, Roman. It solved the problem.
Can't believe this '&' takes me two days.
On Tue, Jan 27, 2009 at 4:26 PM, Roman Yakovenko
wrote:
> 2009/1/27 ZaeX :
> > Hi, c++-sig:
> >
> > I got a problem involving shared_ptr here,
> > according to some threads here I believed it should be solved by
> > i
So I'm having some difficulty getting one of the boost.python tutorial
examples working. In particular the class with a string constuctor.
http://www.boost.org/doc/libs/1_37_0/libs/python/doc/tutorial/doc/html/python/exposing.html#python.constructors
This exact example crashes for me in Visual S
2009/1/27 ZaeX :
> Hi, c++-sig:
>
> I got a problem involving shared_ptr here,
> according to some threads here I believed it should be solved by
> implicitly_convertible,
> however after many tries, I still cannot make it work. although this problem
> may look old, I really need your help or hint.