Mail Archives: djgpp/1998/02/01/19:32:28
Found two C++-parserproblems, which *imho* shouldn't be there:
// ----- First one:
class A
{ public:
char *string;
A(char *s) : string(s) {}
};
class B : public A
{ public:
B(void) : A("doesn't work here with language-specific letters !") {}
};
// i.e. german letters in the string will produce 'parser error'
'unterminated string'
B test;
main()
{ A *test = new A("but here it works !");
delete test;
}
// -----
Templates of templates:
i.e.: MyList<MyArray<MyString>> (oh yes, I do such things !)
Parser has problems with the final >>
No more problem, if you type a blank between there.
If somebody knows a solution for the first problem, please mail me.
Andy Kluge -- *\o/* --- Wiesbaden, Germany ---------- bitland AT aol DOT com
- - - - - - OOP is when flags are set at half-mast - - -
- - -
- Raw text -