Re: [pygccxml-development] Two patches proposal
Brought to you by:
mbaas,
roman_yakovenko
From: Berserker <ber...@ho...> - 2010-01-12 10:01:45
|
> No. Py++ doesn't support boost::unordered containers. > > I have a luck to work with recent compilers, so they already have such > functionality. > > If boost::unordered containers does not require tweaking to indexing > suite v2, than it should not be too difficult to add support for them. I confirm that this code compiles without problems: boost::python::class_< std::map<std::string, int> > ("map_string_to_int") .def(boost::python::indexing::map_suite< std::map<std::string, int> >()); boost::python::class_< boost::unordered_map<std::string, int> > ("unordered_map_string_to_int") .def(boost::python::indexing::map_suite< boost:unordered_map<std::string, int> >()); Tested on VC2005 _________________________________________________________________ 25 Gygabite gratis online. Archivia e condividi i tuoi file! http://www.windowslive.it/skyDrive.aspx |