diff --git a/Doc/Manual/SWIGPlus.html b/Doc/Manual/SWIGPlus.html index 13c81588d..28e0e839f 100644 --- a/Doc/Manual/SWIGPlus.html +++ b/Doc/Manual/SWIGPlus.html @@ -3109,6 +3109,20 @@ not necessary to instantiate a new class for the type Integer (doing so redundant and will simply result in code bloat).

+

+The template provide to %template for instantiation must be the actual template and not a typedef to a template. +

+ +
+
+typedef List<int> ListOfInt;
+
+%template(intList) List<int>; // ok
+%template(intList) ListOfInt; // illegal - Syntax error
+
+
+ +

6.18.2 Function templates