[C++-sig] Pyplusplus: Exporting arrays of non-copyable type?

Roman Yakovenko roman.yakovenko at gmail.com
Fri Aug 4 14:48:19 CEST 2006


On 8/4/06, Haridev, Meghana <mharidev at qualcomm.com> wrote:
> I'm using pyplusplus to generate boost.python wrappers for the following
> piece of C++ code:
> ...
>
> In class Test, the dataArray if of type Derv which is a non-copyable type
> (because of private copy constructor and assignment operator of Base class).
> In other words, this is not allowed:

> But the pyplusplus generated code (register_array_1() in __array_1.pypp.hpp)
> exposes a set_item method for the data array though it's type is
> non-copyable and hence the code does not compile with the following error
> message:
>
>
> Is there any way I can make pyplusplus to NOT generate the set_item method
> for arrays of non-copyable type? (maybe by setting some flag?)

Unfortunately no. I did not thought about this. You have 2 choices:
1. To add this functionality to pyplusplus
2. To exclude the variable from generation and to add hand written code.


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list