[C++-sig] Re: boost::* standard python conversions

Preston A. Elder prez at neuromancy.net
Sat Feb 12 01:05:27 CET 2005


On Fri, 11 Feb 2005 21:55:16 -0200, Nicodemus wrote:

> template<class T>
> void export_std_vector(const char* name)
> {
>     // export std::vector<T>
> }
My pair conversion code is in my own 'python.h', here:
http://www.neuromancy.net/viewcvs/Mantra-I/python/python.h?root=mantra&rev=1.3&view=auto

Look for PairConversion<T1,T2>, it uses the to_python_converter/rvalue
stuff.

As I said, map and vector are supported (pretty much) by boost::python
already through their boost::python::vector_indexing_suite and
boost::python::map_indexing_suite, however 'set' and 'list' are notably
missing.

-- 
PreZ :)
Founder. The Neuromancy Society (http://www.neuromancy.net)





More information about the Cplusplus-sig mailing list