Asger Ottar Alstrup <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> Does your compiler allow: >> class Base { >> public: >> virtual Base * clone(); >> }; >> class Derived : public Base { >> public: >> virtual Base * clone() { >> return new Derived; >> } >> }; >> ?? (what about if we add some template classes?) > | I haven't tried, since I ran out of time. > | For those that are interested, attached is an archive of my changes so | far. Apply the patch, put os_win32.h in src/support and the rest of | the new files in development/win32. > | I'd like to commit the struct<->class, and->&& and #include fixes, | since those are uncontroversial and improve correctness for all | platforms.
Several of the struxtg<->class changes should be fixed by changing the definition instead. We should reserve the "struct" for old-C POD style structs. The and -> && is a good change, but if it is required, then your compiler is buggy. the include changes might be good, would have been interesting to see some of the errors. The #warning wrapping is ok. -- Lgb