The existing typemaps didn't work at all and making them work would require defining all the typemaps needed by the Unified Typemaps Library, which seems to be geared towards dynamic languages. Just implement completely straightforward (and not very convenient to use) typemaps instead. Enable the now passing unit tests and add a runme for one of them.
24 lines
560 B
OpenEdge ABL
24 lines
560 B
OpenEdge ABL
%{
|
|
#include <utility>
|
|
%}
|
|
|
|
// Ideal, especially for the simple/primitive types, would be to represent
|
|
// pair<T,U> as a C struct with the 2 fields, but for now we use the simplest
|
|
// possible implementation, with the accessor functions required to work with
|
|
// the fields.
|
|
|
|
namespace std {
|
|
template <class T, class U> struct pair {
|
|
typedef T first_type;
|
|
typedef U second_type;
|
|
|
|
pair();
|
|
pair(T first, U second);
|
|
pair(const pair& other);
|
|
|
|
template <class T2, class U2> pair(const pair<T2, U2> &other);
|
|
|
|
T first;
|
|
U second;
|
|
};
|
|
}
|