I want to call a C++ function in Python that takes two Python dictionaries whose key values are lists, as parameters, like:
a = {'str1': [1, 2, 3], 'str2': [4, 5, 6]}
b = {'str3': [7, 8, 9], 'str4': [10, 11, 12]}
cppFunction(a, b)
And in C++, the function called take the two dictionaries and store them in two variables of the type map<string, vector<int>>
. How can I do this? Do I have to use boost library?
Thanks,
Qingkun