diff --git a/Doc/Manual/Library.html b/Doc/Manual/Library.html index 896cb217b..9f606fa3f 100644 --- a/Doc/Manual/Library.html +++ b/Doc/Manual/Library.html @@ -45,6 +45,9 @@ @@ -2327,6 +2330,24 @@ shared_ptr which has %naturalvar turned on in %shared_ptr.

- +

12.5.2.1 %attribute and C++ templates

+

+ %attribute and friends have to be used on fully specified classes. For example +

+
+
+%attributeref(A<int>, int, a);
+%inline %{
+  template <class T> struct A {
+    T a() const;
+    void a(T &);
+  };
+%}
+
+
+

+Note the use of a template-id (i.e., A<int> not A<T> or just A). +This means that %attribute statements have to be repeated for any template-id that you want to use with %template. +