I don't know
swig but you got a C++ compiler error.
T
and
U
are template parameters that must be replaced with existing class types.
C++ Examples:
std::pair <int, int> p1;
std::pair <int, std::string> p2;
See also
pair::pair - C++ Reference[
^].
So you have to use it accordingly depending on the types used with
std::pair
(guessed):
%feature("valuewrapper") std::pair <int, int>;
%ignore std::pair<int, int>::pair();
%feature("valuewrapper") std::pair <int, std::string>;
%ignore std::pair<int, std::string>::pair();