[C++-sig] creating character arrays in Boost.Python

Faheem Mitha faheem at email.unc.edu
Tue Apr 20 08:18:53 CEST 2004


Dear People,

If I want to create a character array in C++ in Boost.Python, along
similar lines to Python's numarray.strings.array(itemsize,shape), is
there a way to do it?

The collection of factory functions in <boost/python/numeric.hpp> look
relevant, but I am not sure what the correct syntax would be. For
example, what should I set for Buffer?

Thanks.                                                  Faheem.





More information about the Cplusplus-sig mailing list