Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-10-01 15:58:58


On 10/01/2006 01:52 PM, Larry Evans wrote:
[snip]
> Doug, I read:
>
> http://www.osl.iu.edu/~dgregor/cpp/variadic-templates.pdf
> section 3.2 on p. 8.
>
> and thought I'd try this initialization, but with the attached I got:
>
> /home/evansl/download/gcc/variadic-templates/gcc-4.1.1/install/bin/g++
> -c -Wall -ftemplate-depth-100 -O0 -fno-inline
> -I/home/evansl/prog_dev/boost-cvs/ro/boost/sandbox/variadic-templates
> -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?
>
After more thinking, I couldn't figure how the compiler could know
how many initializers were needed; hence, the error message:

  too many initializers

makes no sense, AFAICT. IIUC, the compiler would have to read the
initialization expression and infer the length of:

   const Values&...

Right?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk