From 34d46510cfbcecdeb4fd1a98a2957ecfe5a2db6a Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 24 Jan 2013 20:53:32 +0000 Subject: [PATCH] Variadic templates doc update --- Doc/Manual/Cpp0x.html | 20 ++++++++++++-------- 1 file 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: } -

Support for the variadic sizeof() function was also introduced:

- -
-const int SIZE = sizeof...(ClassName<int, int>);
-
-

For now however, the %template directive only accepts one parameter substitution for the variable template parameters.

-%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
 
+

Support for the variadic sizeof() function is correctly parsed:

+ +
+const int SIZE = sizeof...(ClassName<int, int>);
+
+ +

+In the above example SIZE is of course wrapped as a constant. +

+

7.2.18 New string literals