From: Larry Evans (cppljevans_at_[hidden])
Date: 2006-10-01 15:58:58
On 10/01/2006 01:52 PM, Larry Evans wrote:
> 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?
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:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk