From 8bf81b8718ba413f66a9dc41e06a50f113e68edd Mon Sep 17 00:00:00 2001
From: William S Fulton
Date: Wed, 9 Aug 2017 20:54:32 +0100
Subject: [PATCH] More docs on %template
---
Doc/Manual/SWIGPlus.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
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
+
+
+
+