[C++-sig] Re: map indexing suite
aashish at iastate.edu
aashish at iastate.edu
Wed May 12 03:57:40 CEST 2004
Hi,
I will be grateful if someone knows how to fix this...
I am having a dictionary
d = {'A':[2,3], 'B':[4,5]}
and I need to get this in C++ so I am using map_indexing_suite like this..
class_< std::map<std::string,std::vector<double>> >("XMap")
.def(map_indexing_suite<std::map<std::string,std::vector<double>> >());
But then it throwing me errors
mainApp.cpp(34) : error C2143: syntax error : missing ',' before ')'
mainApp.cpp(37) : error C2143: syntax error : missing ';' before '}'
mainApp.cpp(38) : error C2143: syntax error : missing ';' before '}'
Does it mean that I can not have an map with an vector in map_indexing_suite?
Please let me know.
Thanks,
Aashish
More information about the Cplusplus-sig
mailing list