swig/Examples/test-suite/li_std_multimap.i
William S Fulton 80f8d1d922 Fix for missing C++ code in std::multimap wrappers.
%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
2013-08-06 07:02:49 +01:00

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*>;
}