#13689 - gb_feedback - Sat Dec 20, 2003 7:10 pm
I have a piece of c++ code (which works ok) looking something like the following:
Every line of the table reports:
main.cpp:4544: warning: aggregate has a partly bracketed initializer
Can a C++ guru indicate the error I am making against the spirit of C++ which gives me this warning but doesn't stop the program working?
_________________
http://www.bookreader.co.uk/
Code: |
void CExpand::ExpandData()
{ struct Decode { int base; int extBits; }; Decode lengthTable[] = { 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, ... ... 256, 0 }; etc.... |
Every line of the table reports:
main.cpp:4544: warning: aggregate has a partly bracketed initializer
Can a C++ guru indicate the error I am making against the spirit of C++ which gives me this warning but doesn't stop the program working?
_________________
http://www.bookreader.co.uk/