6 Oct
2004
6 Oct
'04
10:08 a.m.
Perhaps I can ask one more question about this strange behaviour, just because I want to understand why: I try to use my own string class, which is inherited from std::string. Defining "VC6_STUPID_BEHAVIOUR" in the example code below compile and run the code successfuly, using the expanded name leads to following compiler error: error C2614: 'MyCString' : illegal member initialization: 'string' is not a base or member
You know WHY??? Also because of the same compiler error in VC6 or is there something else wrong. On Solaris and HP-UX it works fine in every combination.
I've no idea, it looks to me like the code should compile either which way, so I guess it's yet another compiler bug. John.