cplusplus-sig@python.org

2009-06-13 Thread Roman Yakovenko
On Sat, Jun 13, 2009 at 9:09 PM, Benjamin Koerner wrote: > How can one allow Py++ to handle member functions that return a reference to > an immutable type? > > For example this X::getval function: > class X{ > double xval; > public: >  double& getval(){return xval;} > }; > > I don't care about th

Re: [C++-sig] [Py++] operators() got an unexpected keyword argument 'decl_type'

2009-06-13 Thread Roman Yakovenko
On Sat, Jun 13, 2009 at 11:48 AM, Werner Joergensen wrote: > > Hello, > I need to exclude some operators from my wrapped python classes, but I seem > not to be able to access the operators. > > What is wrong with this code: > --8<-- > from pyplusplus import module_builder > files=[

cplusplus-sig@python.org

2009-06-13 Thread Benjamin Koerner
How can one allow Py++ to handle member functions that return a reference to an immutable type? For example this X::getval function: class X{ double xval; public: double& getval(){return xval;} }; I don't care about the reference. All I need is the double value, which is only used as an r-va

[C++-sig] [Py++] operators() got an unexpected keyword argument 'decl_type'

2009-06-13 Thread Werner Joergensen
Hello, I need to exclude some operators from my wrapped python classes, but I seem not to be able to access the operators. What is wrong with this code: --8<-- from pyplusplus import module_builder files=["test.H"] mb = module_builder.module_builder_t( files=files, )