[C++-sig] Header error in boost/python/object/make_holder?

Thomas Hauk thauk at novuscom.net
Tue Oct 16 17:55:16 CEST 2007


On Oct 16, 2007, at 3:31 AM, Roman Yakovenko wrote:
> Next code was generated by Py++, may be it is not optimal but it  
> does the work. __array_1.pypp.hpp file is attached

Thanks for the code, Roman.

I must say how surprised I am at the amount of code it takes to wrap  
a struct containing only an array of chars! Is this a limitation of  
the way C++ and Python get bound, or is this because of some  
inefficiency in Boost.Python? If the latter, I would hope that this  
becomes a new base case for improving the package.

Would it be easier to wrap this using another technology, like SWIG?

T

--
Some people, when confronted with a problem, think "I know, I'll use  
regular expressions."  Now they have two problems.
   --Jamie Zawinski, in comp.lang.emacs




More information about the Cplusplus-sig mailing list