On Sat, Feb 4, 2012 at 8:48 PM, Jim Bosch wrote:
> Oh, you're right. I was confusing the manual way of doing Python-side
> polymorphism (derived-class holders) with the more automatic (and better)
> way you're doing it (with wrapper). Your original code was fine in that
> regard.
>
> Anyhow, lo
On 02/04/2012 08:23 PM, Adam Preble wrote:
On Sat, Feb 4, 2012 at 10:46 AM, Jim Bosch mailto:[email protected]>> wrote:
If I understand your intend correctly, I think your class_
definition needs to be:
class_,__noncopyable>
(right now you have class_)
Something like thi
On Sat, Feb 4, 2012 at 10:46 AM, Jim Bosch wrote:
> If I understand your intend correctly, I think your class_ definition
> needs to be:
>
> class_,**noncopyable>
>
> (right now you have class_)
>
>
>
Something like this?
class_,
boost::noncopyable>("Communicatable")
I get burnt by the compiler
All,
For those working with both protobuf and boost::python, I've written a
protobuf plugin which generates boost::python wrappings for the
protoc-generated C++ implementation.
The rationale of the plugin (over, say, using the protoc experimental C++
python implementation) was a desire to directl
On 02/04/2012 11:11 AM, Adam Preble wrote:
I am trying to run this on Win32, using Stackless Python 2.6, and Boost
1.47.
I am having a problem with passing a shared_ptr of a C++ object
implementing a C++ interface to a wrapper of a Python object
implementing a C++ interface. That's a mouthful,
On 02/03/2012 03:13 PM, Holger Brandsmeier wrote:
Dear list,
how can I have a static member function that acts like a constructor
in a Wrapper, i.e. I have a class that I want to extend from python?
I have a wrapper class around a class (PfemSpace) that has this static
member functions:
sta
On 02/03/2012 02:26 PM, Holger Brandsmeier wrote:
Dear list,
Note: I am actually using Teuchos::RCP instead of boost::shared_ptr
and boost::weak_ptr, but I already mirrored almost all the special
treatments in boost::python, and have been successfully using this for
a while. Everything that I wr
I am trying to run this on Win32, using Stackless Python 2.6, and Boost
1.47.
I am having a problem with passing a shared_ptr of a C++ object
implementing a C++ interface to a wrapper of a Python object implementing a
C++ interface. That's a mouthful, so I thought I'd simplify the code. The
thin