diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-01-24 20:53:32 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-01-24 20:53:32 +0000 |
commit | 34d46510cfbcecdeb4fd1a98a2957ecfe5a2db6a (patch) | |
tree | 1b19d142cd37a3bd987ef78c59be8bb9f0c5ebfc /Doc/Manual | |
parent | ac74c90fb03b9ce91db0c8d839d52afa3bbc3db8 (diff) | |
download | swig-34d46510cfbcecdeb4fd1a98a2957ecfe5a2db6a.tar.gz |
Variadic templates doc update
Diffstat (limited to 'Doc/Manual')
-rw-r--r-- | Doc/Manual/Cpp0x.html | 20 |
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<int, int>); -</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<> // zero argument not supported +%template(MyVariant1) ClassName<> // zero argument not supported yet %template(MyVariant2) ClassName<int> // ok -%template(MyVariant3) ClassName<int, int> // too many arguments +%template(MyVariant3) ClassName<int, int> // 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<int, int>); +</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> |