aboutsummaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-01-24 20:53:32 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-01-24 20:53:32 +0000
commit34d46510cfbcecdeb4fd1a98a2957ecfe5a2db6a (patch)
tree1b19d142cd37a3bd987ef78c59be8bb9f0c5ebfc /Doc/Manual
parentac74c90fb03b9ce91db0c8d839d52afa3bbc3db8 (diff)
downloadswig-34d46510cfbcecdeb4fd1a98a2957ecfe5a2db6a.tar.gz
Variadic templates doc update
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Cpp0x.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/Doc/Manual/Cpp0x.html b/Doc/Manual/Cpp0x.html
index fa895cc6b..0200fdf5c 100644
--- a/Doc/Manual/Cpp0x.html
+++ b/Doc/Manual/Cpp0x.html
@@ -511,23 +511,27 @@ public:
}
</pre></div>
-<p>Support for the variadic sizeof() function was also introduced:</p>
-
-<div class="code"><pre>
-const int SIZE = sizeof...(ClassName&lt;int, int&gt;);
-</pre></div>
-
<p>
For now however, the <tt>%template</tt> directive only accepts one parameter substitution
for the variable template parameters.
</p>
<div class="code"><pre>
-%template(MyVariant1) ClassName&lt;&gt; // zero argument not supported
+%template(MyVariant1) ClassName&lt;&gt; // zero argument not supported yet
%template(MyVariant2) ClassName&lt;int&gt; // ok
-%template(MyVariant3) ClassName&lt;int, int&gt; // too many arguments
+%template(MyVariant3) ClassName&lt;int, int&gt; // too many arguments not supported yet
</pre></div>
+<p>Support for the variadic <tt>sizeof()</tt> function is correctly parsed:</p>
+
+<div class="code"><pre>
+const int SIZE = sizeof...(ClassName&lt;int, int&gt;);
+</pre></div>
+
+<p>
+In the above example <tt>SIZE</tt> is of course wrapped as a constant.
+</p>
+
<H3><a name="Cpp0x_New_string_literals"></a>7.2.18 New string literals</H3>