%template for a std::multimap generated uncompilable code unless a
%template for a std::map of the same template types was also coded up.
This patch is needed in conjunction with previous commit - 5f1fff1849
Closes #64
Closes #65
23 lines
293 B
OpenEdge ABL
23 lines
293 B
OpenEdge ABL
%module("templatereduce") li_std_multimap
|
|
|
|
%feature("trackobjects");
|
|
|
|
%include std_pair.i
|
|
%include std_multimap.i
|
|
|
|
%inline %{
|
|
struct A{
|
|
int val;
|
|
|
|
A(int v = 0): val(v)
|
|
{
|
|
}
|
|
|
|
};
|
|
%}
|
|
|
|
namespace std
|
|
{
|
|
%template(pairA) pair<int, A*>;
|
|
%template(multimapA) multimap<int, A*>;
|
|
}
|