[Qt-creator] struct initializer and the parser
Thomas Fannes
thomas.fannes at groept.be
Tue Jan 13 15:25:42 CET 2009
Hello,
I think there is a small error in the qt parser for qt creator. If I
define a struct and use anonymous initialization of that struct, the
qt parser gives me an error: "expected toke `;' got `{'". Maybe it's
not very good coding practice, but it's allowed in the ansi standard,
so ...
e.g.:
struct dataStruct
{
int a;
int b;
}
dataStruct getStruct()
{
return ((dataStruct) {43, 5});
}
btw, thanks for such a great IDE.
Thomas Fannes
More information about the Qt-creator-old
mailing list