From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-10-01 14:52:42
On 08/04/2006 04:54 PM, Doug Gregor wrote:
> I have just completed implementing support for "Variadic Templates"
> in GCC. Variadic templates are C++ templates that can accept any
> number of "extra" template arguments, just like a function that uses
> C-style varargs (with "...") can accept any number of extra
> arguments. Unlike C varags, however, variadic templates work both for
> class templates and function templates, and are completely type-safe.
Doug, I read:
section 3.2 on p. 8.
and thought I'd try this initialization, but with the attached I got:
-c -Wall -ftemplate-depth-100 -O0 -fno-inline
-I"../../../../.." -I"../../../../../../.." vinit.cpp -o vinit.gccv.o
vinit.cpp:17: error: too many initializers for 'test'
make: *** [vinit.gccv.o] Error 1
What am I doing wrong?
TIA. (BTW, this is a great addition to the language!)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk