[C++-sig] Re: map indexing suite

Jeff Holle jeff.holle at verizon.net
Thu May 13 10:51:21 CEST 2004

I would guess that:

class_< std::map<std::string,std::vector<double>> >("XMap")
		.def(map_indexing_suite<std::map<std::string,std::vector<double>> >())

is problematic because there isn't a space between trailing ">" characters.
I use typedefs to clean these expressions up.  Like:

typedef std::map<std::string,std::vector<double> > XMap;
class < XMap>("XMap")

More information about the Cplusplus-sig mailing list