On Freitag 10 Dezember 2004 03:40, Jon Berndt wrote: > This gives me an odd error: > > non-static const member `AnotherClass* const ptrToAnotherClass', can't use > default assignment operator > > If I remove the const specifier from the declaration for ptrToAnotherClass, > and then move the assignment at the copy constructor into the code (instead > of doing the "const thing" in the initializer list), then the compile > works. That is something which is, I believe, missinterpreted by some compilers. You have a constant value and as such it cannot change. Initial assignment is a change and so you cannot assign that one. Your compiler seems to allow such an assignment for static members, but not for nonstatic members.
That is some kind of braindead, but it is present ... I am not shure what the C++ standard tells about that, I think I will read that today :) Greetings Mathias -- Mathias Fröhlich, email: [EMAIL PROTECTED] _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d