when the specialized parameter is non-trivial, used in a wrapped method
and the type to %template uses typedefs. For example:
typedef double & DoubleRef;
template <typename T> struct XX {};
template <typename T> struct XX<T &> { void fn(T t) {} };
%template(XXD) XX<DoubleRef>;
The type of the parameter in the instantiated template for fn is now correctly deduced
as double.
|
||
|---|---|---|
| .. | ||
| cparse.h | ||
| cscanner.c | ||
| parser.y | ||
| templ.c | ||
| util.c | ||